824200434b
Copy from home:jengelh:dev/pam_mount via accept of submit request 37344 revision 3. Request was accepted with message: OBS-URL: https://build.opensuse.org/request/show/37344 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam_mount?expand=0&rev=11
22 lines
560 B
Bash
22 lines
560 B
Bash
#!/bin/bash
|
|
|
|
CMD="${0##*/}"
|
|
|
|
if [[ "$CMD" =~ "umount" ]]; then
|
|
if [ ! -x ../usr/sbin/umount.crypt ]; then
|
|
logger -t "mount.crypt" -p user.err -i "/usr/sbin/umount.crypt: File not found."
|
|
exit 1
|
|
fi
|
|
../usr/sbin/umount.crypt $@
|
|
elif [[ "$CMD" =~ "mount" ]]; then
|
|
if [ ! -x ../usr/sbin/mount.crypt ]; then
|
|
logger -t "mount.crypt" -p user.err -i "/usr/sbin/mount.crypt: File not found."
|
|
exit 1
|
|
fi
|
|
../usr/sbin/mount.crypt $@
|
|
else
|
|
logger -t "mount.crypt" -p user.err -i "Unknown command: $0"
|
|
exit 1
|
|
fi
|
|
|