author | ft |
Tue, 04 Nov 2014 14:21:53 +0100 | |
changeset 26 | 7ee697669fb9 |
parent 0 | 35acc83f4749 |
child 27 | a8c8d86b8501 |
permissions | -rwxr-xr-x |
1 #!/bin/sh
3 BASEDIR="$(dirname $0)"
5 if [ -r "$BASEDIR/truecrypt_config.cfg" ]
6 then
7 . "$BASEDIR/truecrypt_config.cfg"
8 else
9 echo "truecrypt_config.cfg not found" >&2
10 exit 1
11 fi
13 devicelist="$($tc_cmd -l)"
14 result="$?"
16 if [ "$result" != "0" ]
17 then
18 exit 1
19 fi
21 # can't do this on the original command because of /bin/sh -> dash -> no PIPESTATUS -.-
22 devicelist=$(echo $devicelist | awk '{ print $2}')
24 echo "$devicelist"
25 exit 0