udev: process udev events on startup in init.d script
authorJonathan Liu <net147@gmail.com>
Fri, 27 Jul 2012 14:03:58 +0000 (00:03 +1000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 30 Jul 2012 19:18:09 +0000 (21:18 +0200)
udev rules are not processed for kernel events that occur before
the udev daemon is started. Call udevadm trigger to replay these
missed events.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/udev/S10udev

index 7bb430923dcebf8f5eb61f5af3a0a88d38293bf5..2c7b7e917f9fcc10cb3052baaac72cd4eda10bc4 100755 (executable)
@@ -30,6 +30,7 @@ case "$1" in
         echo -n "Populating ${udev_root:-/dev} using udev: "
         echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
         $UDEV_BIN -d || (echo "FAIL" && exit 1)
+        udevadm trigger
         echo "done"
         ;;
     stop)