www.pudn.com > cryptfs030905.rar > doit.sh


#!/bin/bash -norc
set -x
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

# regular style mount
mount -t cryptfs -o dir=/n/fist/cryptfs,debug=${1:-18} /n/fist/cryptfs /mnt/cryptfs || exit

# attach-mode style mount
#mount -t cryptfs -o debug=18 none /mnt/cryptfs || exit

#read n
#fist_ioctl +a /mnt/cryptfs abc /n/fist/cryptfs/zadok

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