Comment Re:Passwords in the cloud? I use simple local scri (Score 2) 206
There is a bit missing in the post above:
$ cat `which t`
#!/bin/sh
file=$HOME/timecode
tcvol=/media/truecrypt1
do=$1
case "$do" in
"on")
if grep -q
logger -t truecrypt "$0 Starting tc: already mounted"
exit
fi
logger -t truecrypt "$0 Starting tc"
DISPLAY=:0.0 truecrypt $file
"off")
t=$(find $tcvol -type f -printf "%TY-%Tm-%Td %TH:%TM\n" | sort -n | tail -1)
truecrypt -d
if [ -n "$t" ] ; then
touch -d "$t" $file
logger -t truecrypt "$0 Stopped tc and set mtime to $t"
else
logger -t truecrypt "$0 Stopped tc; no mtime to set found"
fi
"status")
truecrypt -t -l
"*")
echo "Usage: $0 on|off|status";
logger -t truecrypt "Bad option '$do' given to $0"
exit 1;
esac