aboutsummaryrefslogtreecommitdiff
path: root/package/udev
diff options
context:
space:
mode:
authorGravatar Jonathan Liu <net147@gmail.com>2012-07-28 00:03:58 +1000
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-07-30 21:18:09 +0200
commit29afecace95d0687477bf42f7ce4e918bcd0f271 (patch)
tree20ab0498fdc79063c7d89a0ef7b7a2e11f5001eb /package/udev
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>
Diffstat (limited to 'package/udev')
-rwxr-xr-xpackage/udev/S10udev1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/udev/S10udev b/package/udev/S10udev
index 7bb430923d..2c7b7e917f 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)