mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
19 lines
404 B
Bash
19 lines
404 B
Bash
#!/bin/sh
|
|
|
|
if [ -f /etc/sysconfig/udev ]; then
|
|
. /etc/sysconfig/udev
|
|
fi
|
|
|
|
if [ -f /etc/conf.d/udev ]; then
|
|
. /etc/conf.d/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
|