2009-03-27 08:31:16 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
|
2009-12-28 19:13:41 +00:00
|
|
|
if [ -z "$USBHD" -o $# -ne 1 ]; then
|
|
|
|
echo USBHD + interval
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2009-08-14 12:04:06 +00:00
|
|
|
ccollect=/home/users/nico/lp/ccollect/ccollect/ccollect.sh
|
2009-03-27 08:31:16 +00:00
|
|
|
|
2009-04-17 17:59:01 +00:00
|
|
|
# in pre_exec
|
|
|
|
#cryptsetup luksOpen /dev/sdc usbhd
|
|
|
|
#mount /home/services/usbhd
|
|
|
|
|
|
|
|
#cd /home/user/nico/p/ccollect/ccollect
|
2009-12-28 19:13:41 +00:00
|
|
|
CCOLLECT_CONF=/home/users/nico/ethz/ccollect $ccollect "$1" ikn
|
2009-04-17 17:59:01 +00:00
|
|
|
|
|
|
|
# in post_exec
|
|
|
|
#umount /home/services/usbhd
|
|
|
|
#cryptsetup luksClose usbhd
|
2009-03-27 08:31:16 +00:00
|
|
|
|