|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/task/21573/root/lib/udev/ |
Upload File : |
#!/bin/sh
if [ "$ACTION" = "add" -a -e "$DEVNAME" ]; then
if [ -x /usr/bin/logger ]; then
LOGGER=/usr/bin/logger
elif [ -x /bin/logger ]; then
LOGGER=/bin/logger
else
unset LOGGER
fi
#
# for diagnostics
#
if [ -f /etc/udev/udev.conf ]; then
. /etc/udev/udev.conf
fi
if [ -t 1 -o -z "$LOGGER" ]; then
mesg () {
echo "$@"
}
else
mesg () {
$LOGGER -t $(basename $0)"[$$]" "$@"
}
fi
debug_mesg () {
test -z "$UDEV_LOG" -o "$UDEV_LOG" != "1" && return
mesg "$@"
}
debug_mesg "/sbin/MAKEDEV ${DEVNAME#$udev_root}"
/sbin/MAKEDEV "${DEVNAME#$udev_root}"
debug_mesg "Restoring permissions for " $DEVNAME*
/sbin/pam_console_apply $DEVNAME*
fi