truecrypt_scripts/truecrypt_umount.sh
author ft
Tue, 09 Sep 2014 09:19:17 +0200
changeset 25 25581dcb9e62
child 27 a8c8d86b8501
permissions -rwxr-xr-x
changed information notifications (no popup anymore)
     1 #!/bin/sh
     2 
     3 BASEDIR="$(dirname $0)"
     4 DEVICE="$1"
     5 
     6 if [ -r "$BASEDIR/truecrypt_config.cfg" ]
     7 then
     8 	. "$BASEDIR/truecrypt_config.cfg"
     9 else
    10 	echo "truecrypt_config.cfg not found" >&2
    11 	exit 1
    12 fi
    13 
    14 message="$($tc_cmd -d $DEVICE)"
    15 result="$?"
    16 
    17 if [ "$result" != "0" ]
    18 then
    19 	exit 1
    20 fi
    21 
    22 echo "$message"
    23 exit 0