fixed umount issue
authorft
Tue, 10 Jun 2014 09:22:20 +0200
changeset 144762c3abc17a
parent 13 af44ef281875
child 15 f6fc3ab7f0c9
fixed umount issue
truecrypt_scripts/truecrypt_init.sh
     1.1 --- a/truecrypt_scripts/truecrypt_init.sh	Fri Jun 06 12:18:37 2014 +0200
     1.2 +++ b/truecrypt_scripts/truecrypt_init.sh	Tue Jun 10 09:22:20 2014 +0200
     1.3 @@ -19,8 +19,11 @@
     1.4  DEVICE="$(echo "$DEVICE" | awk '{print substr($1,0,9)}')"
     1.5  
     1.6  # make sure the device is not mounted
     1.7 +umount /var/run/usbmount/*
     1.8 +sleep 1
     1.9  umount ${DEVICE}*
    1.10  
    1.11 +
    1.12  if [ -z "$KEYFILE" ]
    1.13  then
    1.14  	message="$($tc_cmd -c --non-interactive --quick --filesystem=none --encryption=AES --hash=RIPEMD-160 -p "$PASSWORD" "$DEVICE")"