Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks/boot-usb
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
commita24b40c5d22020fcab3d0035bc07f21ff20dcbc3 (patch)
tree97f7b49bb77ade241a27b861277d4477483db30d /hooks/boot-usb
parentc2657570456d6c8db4830cc3c7a5e4888942d691 (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/boot-usb')
-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