chiark / gitweb /
[PATCH] Minor POSIX-fixes for udev
[elogind.git] / etc / dev.d / default / pam_console.dev
1 #!/bin/sh
2
3 if [ -f /etc/sysconfig/udev ]; then
4         . /etc/sysconfig/udev
5 fi
6
7 if [ -f /etc/conf.d/udev ]; then
8         . /etc/conf.d/udev
9 fi
10
11 [ "$UDEV_CONSOLE" != "yes" ] && exit 0
12
13 if [ -x /sbin/pam_console_setowner ]; then
14         if [ "$UDEV_LOG" = "yes" ] && [ -x /usr/bin/logger ]; then 
15                 /usr/bin/logger -p auth.debug "Restoring console permissions for $DEVNAME"
16         fi
17         exec /sbin/pam_console_setowner $DEVNAME
18 fi