author | ft |
Fri, 06 Jun 2014 12:18:37 +0200 | |
changeset 13 | af44ef281875 |
parent 12 | ee0ff4b21221 |
child 14 | 4762c3abc17a |
1.1 --- a/truecrypt_scripts/truecrypt_init.sh Fri Jun 06 11:57:40 2014 +0200 1.2 +++ b/truecrypt_scripts/truecrypt_init.sh Fri Jun 06 12:18:37 2014 +0200 1.3 @@ -15,7 +15,8 @@ 1.4 fi 1.5 1.6 # make sure to have "/dev/sdb" (not "/dev/sdb1") 1.7 -DEVICE="${DEVICE:0:8}" 1.8 +#DEVICE="${DEVICE:0:8}" the bash way does not word in dash -.- 1.9 +DEVICE="$(echo "$DEVICE" | awk '{print substr($1,0,9)}')" 1.10 1.11 # make sure the device is not mounted 1.12 umount ${DEVICE}*