2009-03-27 08:31:16 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
|
2010-04-15 10:21:43 +00:00
|
|
|
#if [ -z "$USBHD" -o $# -ne 1 ]; then
|
|
|
|
# echo USBHD + interval
|
|
|
|
# exit 1
|
|
|
|
#fi
|
2009-12-28 19:13:41 +00:00
|
|
|
|
2010-04-15 10:21:43 +00:00
|
|
|
ccollect=/home/users/nico/oeffentlich/rechner/projekte/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
|
2010-04-15 10:21:43 +00:00
|
|
|
export CCOLLECT_CONF=/home/users/nico/ethz/ccollect
|
|
|
|
$ccollect $1 ikn$2
|
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
|
|
|
|