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

* [Buildroot] [PATCH] udev: process udev events on startup in init.d script
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2012-07-30 20:20 UTC (permalink / raw)
  To: buildroot

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
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.