www.pudn.com > cryptfs030905.rar > doit-nfs.sh
#!/bin/bash -norc
set -x
# overlay mount on top of NFS example
PATH=/sbin:.:/usr/local/fist:${PATH}
export PATH
#make module_install
#make module_install_nocheck
#make install
lsmod
insmod ./cryptfs.o || exit
lsmod
#read n
#sleep 1
mount -t cryptfs -o dir=/mnt/cryptfs /mnt/cryptfs /mnt/cryptfs || exit
#read n
#sleep 1
fist_ioctl -d /mnt/cryptfs ${1:-18} || exit
fist_ioctl -f /mnt/cryptfs 1 || exit
if test -f fist_setkey ; then
read n
echo abrakadabra | ./fist_setkey /mnt/cryptfs
echo
fi