Scripts: encfsw helper script
parent
407d309535
commit
9be1ca64aa
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
if [ $# -ne 1 ] && [ $# -ne 2 ]; then
|
||||
echo "Usage: $0 ROOTDIR [MOUNTPOINT]"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ -w "$(command -v realpath)" ]; then
|
||||
echo "You need 'realpath'."
|
||||
exit
|
||||
fi
|
||||
if [ -w "$(command -v encfs)" ]; then
|
||||
echo "You need 'encfs'."
|
||||
exit
|
||||
fi
|
||||
|
||||
[ $# -ne 2 ] && 2="${1}_dc"
|
||||
encfs "$(realpath "$1")" "$(realpath "$2")"
|
|
@ -407,7 +407,6 @@ clonecd ()
|
|||
# dd if=$DRIVE of='$1.iso' bs=2048 count=$(isosize -d 2048 $DRIVE) conv=sync,notrunc
|
||||
}
|
||||
|
||||
|
||||
##==============================================================================
|
||||
## Pacman functions
|
||||
##==============================================================================
|
||||
|
|
Loading…
Reference in New Issue