blob: 324c4fd8046c171d1cfe91da611e362085dfeee6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
if [ -f /etc/sysconfig/udev ]; then
. /etc/sysconfig/udev
fi
[ "$UDEV_CONSOLE" != "yes" ] && exit 0
if [ -x /sbin/pam_console_setowner ]; then
if [ "$UDEV_LOG" = "yes" -a -x /usr/bin/logger ]; then
/usr/bin/logger -p auth.debug "Restoring console permissions for $DEVNAME"
fi
exec /sbin/pam_console_setowner $DEVNAME
fi
|