Files
systemd/etc/dev.d/default/pam_console.dev
2005-04-26 21:35:15 -07:00

15 lines
347 B
Bash

#!/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