udev: process udev events on startup in init.d script

Submitted by Jonathan Liu on July 27, 2012, 2:03 p.m.

Details

Message ID 1343397838-2265-1-git-send-email-net147@gmail.com
State Accepted
Headers show

Commit Message

Jonathan Liu July 27, 2012, 2:03 p.m.
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>
---
 package/udev/S10udev | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Petazzoni July 30, 2012, 8:20 p.m.
Le Sat, 28 Jul 2012 00:03:58 +1000,
Jonathan Liu <net147@gmail.com> a écrit :

> 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>

Applied, thanks.

Thomas

Patch hide | download patch | download mbox

diff --git a/package/udev/S10udev b/package/udev/S10udev
index 7bb4309..2c7b7e9 100755
--- a/package/udev/S10udev
+++ b/package/udev/S10udev
@@ -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)