2010-04-13 21:36:53 +02:00
|
|
|
#!/bin/bash
|
2009-02-20 01:02:26 +01:00
|
|
|
|
2010-04-13 21:36:53 +02:00
|
|
|
CMD="${0##*/}"
|
2009-02-20 01:02:26 +01:00
|
|
|
|
|
|
|
if [[ "$CMD" =~ "umount" ]]; then
|
2010-06-02 02:04:04 +02:00
|
|
|
if [ ! -x ../usr/sbin/umount.encfs13 ]; then
|
2009-02-20 01:02:26 +01:00
|
|
|
logger -t "mount.encfs13" -p user.err -i "/usr/sbin/umount.encfs13: File not found."
|
|
|
|
exit 1
|
|
|
|
fi
|
2010-06-02 02:04:04 +02:00
|
|
|
../usr/sbin/umount.encfs13 $@
|
2009-02-20 01:02:26 +01:00
|
|
|
elif [[ "$CMD" =~ "mount" ]]; then
|
2010-06-02 02:04:04 +02:00
|
|
|
if [ ! -x ../usr/sbin/mount.encfs13 ]; then
|
2009-02-20 01:02:26 +01:00
|
|
|
logger -t "mount.encfs13" -p user.err -i "/usr/sbin/mount.encfs13: File not found."
|
|
|
|
exit 1
|
|
|
|
fi
|
2010-06-02 02:04:04 +02:00
|
|
|
../usr/sbin/mount.encfs13 $@
|
2009-02-20 01:02:26 +01:00
|
|
|
else
|
|
|
|
logger -t "mount.encfs13" -p user.err -i "Unknown command: $0"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|