84254039a8
checked in (request 37536) OBS-URL: https://build.opensuse.org/request/show/37536 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam_mount?expand=0&rev=12
22 lines
579 B
Bash
22 lines
579 B
Bash
#!/bin/sh
|
|
|
|
CMD=`basename $0`
|
|
|
|
if [[ "$CMD" =~ "umount" ]]; then
|
|
if [ ! -x ../usr/sbin/umount.encfs13 ]; then
|
|
logger -t "mount.encfs13" -p user.err -i "/usr/sbin/umount.encfs13: File not found."
|
|
exit 1
|
|
fi
|
|
../usr/sbin/umount.encfs13 $@
|
|
elif [[ "$CMD" =~ "mount" ]]; then
|
|
if [ ! -x ../usr/sbin/mount.encfs13 ]; then
|
|
logger -t "mount.encfs13" -p user.err -i "/usr/sbin/mount.encfs13: File not found."
|
|
exit 1
|
|
fi
|
|
../usr/sbin/mount.encfs13 $@
|
|
else
|
|
logger -t "mount.encfs13" -p user.err -i "Unknown command: $0"
|
|
exit 1
|
|
fi
|
|
|