MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /lib/udev/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/udev/MAKEDEV.dev
#!/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

Anon7 - 2021