Script to mount and umount truecrypt volumes

OOzy Pal oozypal at gmail.com
Wed Dec 5 10:09:49 UTC 2007


what is wrong with my script. I want to use to mount my truecrypt
volume then unmount

./mtc i --> for install
./mtc r --> for removal

#!/bin/bash

if ["$1"=='i']
then
	sudo truecrypt --mount-options 'rw,umask=000,uid=1000,gid=1000'
--user-mount -p ddddddd /media/HABLG/temporary /media/LGCrypt
elif ["$1"=='r']
then
	sudo truecrypt -d
	sudo umount /media/HABLG
fi


-- 
OOzy
Ubuntu-Gutsy (7.10)




More information about the ubuntu-users mailing list