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>
2012.11.x
Jonathan Liu 2012-07-28 00:03:58 +10:00 committed by Thomas Petazzoni
parent b08fd56ae8
commit 29afecace9
1 changed files with 1 additions and 0 deletions

View File

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