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
parent
b08fd56ae8
commit
29afecace9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue