Scripts: encfsw helper script

master
Pierre Neidhardt 2013-07-06 20:06:35 +02:00
parent 407d309535
commit 9be1ca64aa
4 changed files with 20 additions and 1 deletions

17
.scripts/encfsw Normal file
View File

@ -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")"

View File

@ -407,7 +407,6 @@ clonecd ()
# dd if=$DRIVE of='$1.iso' bs=2048 count=$(isosize -d 2048 $DRIVE) conv=sync,notrunc
}
##==============================================================================
## Pacman functions
##==============================================================================

3
README
View File

@ -278,7 +278,10 @@ driconf
dtach
dvtm
dwb
ecryptfs
ecryptfs-simple
emacs
encfs
fbpdf
fbv
fdisk