pam_mount/mount.crypt
OBS User autobuild d4490f3d01 Accepting request 40947 from Linux-PAM
Copy from Linux-PAM/pam_mount based on submit request 40947 from user mcalmer

OBS-URL: https://build.opensuse.org/request/show/40947
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pam_mount?expand=0&rev=37
2010-06-02 00:04:05 +00:00

22 lines
556 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