summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2012-07-27 14:03:58 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-07-30 19:18:09 (GMT)
commit29afecace95d0687477bf42f7ce4e918bcd0f271 (patch)
tree20ab0498fdc79063c7d89a0ef7b7a2e11f5001eb
parentb08fd56ae82ad2d003512e6128ae60016d0186df (diff)
downloadbuildroot-29afecace95d0687477bf42f7ce4e918bcd0f271.tar.gz
buildroot-29afecace95d0687477bf42f7ce4e918bcd0f271.tar.bz2
udev: process udev events on startup in init.d script
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>
-rwxr-xr-xpackage/udev/S10udev1
1 files changed, 1 insertions, 0 deletions
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)