X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Finitscripts%2Fsystem%2Fudev;h=821df86b7731a1772cb0ad0383d4a1a10ef78e3f;hp=6cf8771eaf745d132700feb999c4122ac9d3d7a3;hb=e300a3d13837841c965a69402536d32099c5ce7d;hpb=33f53d55ccec436a6cbd80ea469ea4a558528798 diff --git a/src/initscripts/system/udev b/src/initscripts/system/udev index 6cf8771eaf..821df86b77 100644 --- a/src/initscripts/system/udev +++ b/src/initscripts/system/udev @@ -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