Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorSimo Leone <simo@archlinux.org>2008-04-02 02:23:00 -0500
committerSimo Leone <simo@archlinux.org>2008-04-02 02:23:00 -0500
commitbc839ac0e577d00aca5c18d18e17b60fcf43ce91 (patch)
tree16dca30020d33b922341337325ce09cb17d96a89 /hooks
parent7cfa4100ca0019498b8401c977a893ed4b6410c4 (diff)
Wait for USB devices to settle before scanning
We weren't able to pick up usb devices at all, because the kernel takes its sweet time realizing that they're there. Signed-off-by: Simo Leone <simo@archlinux.org>
Diffstat (limited to 'hooks')
-rw-r--r--hooks/boot-usb4
1 files changed, 4 insertions, 0 deletions
diff --git a/hooks/boot-usb b/hooks/boot-usb
index 97ad2a9..e84dd1c 100644
--- a/hooks/boot-usb
+++ b/hooks/boot-usb
@@ -1,5 +1,9 @@
run_hook ()
{
+ msg ":: Waiting for usb devices to settle..."
+ /sbin/udevtrigger --subsystem-match=usb
+ /sbin/udevsettle
+ sleep 5
msg ":: Scanning for boot usb device..."
/bin/mkdir -p /bootmnt