--- trunk/busybox-initscripts/rc/udev 2009/08/03 20:46:46 888 +++ trunk/busybox-initscripts/rc/udev 2010/04/26 18:55:37 975 @@ -67,6 +67,9 @@ [ ! -c /dev/tty1 ] && mknod /dev/tty1 c 4 1 [ ! -c /dev/null ] && mknod /dev/null c 1 3 + # create kmsg too, so udev can add its start-message to dmesg + [ -c /dev/kmsg ] || mknod -m 660 /dev/kmsg c 1 11 + # copy over any persistant things if [[ -d /lib/udev/devices ]] then @@ -98,6 +101,8 @@ fstype=ramfs # tmpfs was suggested by Greg Kroah-Hartman kernel_supports_fs tmpfs && fstype=tmpfs + # mount devtmpfs if supported + kernel_supports_fs devtmpfs && fstype=devtmpfs mount -n -t ${fstype} udev /dev -o exec,nosuid,mode=0755,size=10M evaluate_retval @@ -123,6 +128,12 @@ print_status failure fi + # load unix domain sockets if built as module + if [ -e /proc/modules ] + then + modprobe -q unix 2>/dev/null + fi + echo -e ${COLOREDSTAR}" Starting udevd daemon ..." if [ ${need_redirect} -eq 1 ] then @@ -148,3 +159,10 @@ # same thing as /dev/.devfsd touch /dev/.udev } + +stop_udev() +{ + echo -e ${COLOREDSTAR}" Stopping udevd daemon ..." + start-stop-daemon --stop --exec /sbin/udevd + evaluate_retval +}