
| The Following 2 Users Say Thank You to fareed_xtreme For This Useful Post: | ||
| The Following 2 Users Say Thank You to NIN101 For This Useful Post: | ||
| The Following User Says Thank You to fareed_xtreme For This Useful Post: | ||
I think we agree, that's it's up to personal preferences, so no conflict here.
MOUNT_PT=/media/truecrypt1
DEV_COUNT=2
if [ -e $MOUNT_PT ]; then
DEV_COUNT=3
fi
/sbin/lsmod | grep g_file_storage > /dev/null
if [ $? != 0 ]; then
/sbin/modprobe g_file_storage stall=0 luns=$DEV_COUNT removable
RC=$?
fi
if [ $RC != 0 ]; then
logger "$0: failed to install g_file_storage"
exit 1
fi
LUN0='/sys/devices/platform/musb_hdrc/gadget/gadget-lun0/file'
LUN1='/sys/devices/platform/musb_hdrc/gadget/gadget-lun1/file'
LUN2='/sys/devices/platform/musb_hdrc/gadget/gadget-lun2/file'
if [ $DEV_COUNT=3 ]; then
# since we may be called when this was already set up...
if [ -e $LUN2 ]; then
# find/remember out mount point
TC_DEV=`/bin/df | /bin/grep $MOUNT_PT | /usr/bin/cut -d\ -f1`
if [ "x$TC_DEV" = "x" ]; then
DEV_COUNT=2
else
DEV_COUNT=3
fi
else
DEV_COUNT=2
fi
fi
if [ $# = 1 ]; then
STR=`cat $LUN0`
if [ "x$STR" = "x" ]; then
echo $1 > $LUN0
else
echo $1 > $LUN1
fi
if [ $DEV_COUNT=3 ]; then
STR=`cat $LUN2`
if [ "x$STR" = "x" ]; then
echo $TC_DEV > $LUN2
fi
fi
fi
| The Following 2 Users Say Thank You to woody14619 For This Useful Post: | ||
/bin/mount
/bin/mount -t vfat /dev/mmcblk1p1 /mnt/mmc
| The Following User Says Thank You to woody14619 For This Useful Post: | ||
cat truecrypt.sudoers user ALL = NOPASSWD: /usr/bin/truecrypt user ALL = NOPASSWD: /opt/maemo/usr/bin/truecrypt
| The Following 2 Users Say Thank You to NIN101 For This Useful Post: | ||
cat truecrypt.sudoers user ALL = NOPASSWD: /usr/bin/truecrypt user ALL = NOPASSWD: /opt/maemo/usr/bin/truecrypt
| The Following User Says Thank You to woody14619 For This Useful Post: | ||