Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] udev: process udev events on startup in init.d script
@ 2012-07-27 14:03 Jonathan Liu
  2012-07-30 20:20 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Liu @ 2012-07-27 14:03 UTC (permalink / raw)
  To: buildroot

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(+)

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-30 20:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-27 14:03 [Buildroot] [PATCH] udev: process udev events on startup in init.d script Jonathan Liu
2012-07-30 20:20 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox