truecrypt_scripts/truecrypt_getdevices.bash
author ft
Tue, 25 Feb 2014 08:08:37 +0100
changeset 0 35acc83f4749
permissions -rw-r--r--
Added first truecrypt script
Added tc config
Added alpha implementation of the encryption provider
     1 #!/bin/bash
     2 
     3 if [ -r "truecrypt_config.cfg" ]
     4 then
     5 	. truecrypt_config.cfg
     6 else
     7 	exit 1
     8 fi
     9 
    10 devicelist="$($tc_cmd -l | awk '{ print $2}')"
    11 result="$?"
    12 if [ "$result" != "0" ]
    13 then
    14 	exit 1
    15 fi
    16 
    17 echo "$devicelist"
    18 exit 0