]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/system/udev
udev: Do no try to install any device nodes any more
[people/pmueller/ipfire-2.x.git] / src / initscripts / system / udev
index 6cf8771eaf745d132700feb999c4122ac9d3d7a3..821df86b7731a1772cb0ad0383d4a1a10ef78e3f 100644 (file)
@@ -55,12 +55,10 @@ case "${1}" in
                # the kernel call out to any binary in response to them
                echo > /proc/sys/kernel/hotplug
 
-               # Copy static device nodes to /dev
-               cp -a /lib/udev/devices/* /dev
-
                # Start the udev daemon to continually watch for, and act on,
                # uevents
-               /sbin/udevd --daemon
+               boot_mesg "Starting udev daemon..."
+               loadproc udevd --daemon
 
                # Now traverse /sys in order to "coldplug" devices that have
                # already been discovered
@@ -72,6 +70,13 @@ case "${1}" in
 
                ;;
 
+       restart)
+               boot_mesg "Stopping udev daemon..."
+               killproc udevd
+
+               exec $0 start
+               ;;
+
        *)
                echo "Usage ${0} {start}"
                exit 1