From: Gustavo Zacarias Date: Mon, 20 Oct 2014 18:26:52 +0000 (-0300) Subject: package/eudev: tweak initscript X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f04a4ad6c20240a67dde097539aaa49cfa01527;p=buildroot.git package/eudev: tweak initscript Make the udev initscript trigger in a coherent way, i.e. first set subsystems, then device and then let the whole thing settle. Otherwise for usb_modeswitch udev rules they never kick in since the storage aspect (device) gets claimed first and the switch ignored. Also set the settle timeout to a smaller value than the default 120 seconds to avoid stalling too much. Signed-off-by: Gustavo Zacarias Acked-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- diff --git a/package/eudev/S10udev b/package/eudev/S10udev index 107dfd5e94..8382bec2bb 100755 --- a/package/eudev/S10udev +++ b/package/eudev/S10udev @@ -30,8 +30,9 @@ case "$1" in printf "Populating ${udev_root:-/dev} using udev: " printf '\000\000\000\000' > /proc/sys/kernel/hotplug $UDEV_BIN -d || (echo "FAIL" && exit 1) - udevadm trigger --action=add - udevadm settle + udevadm trigger --type=subsystems --action=add + udevadm trigger --type=devices --action=add + udevadm settle --timeout=30 || echo "udevadm settle failed" echo "done" ;; stop)