Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-01-29 09:07:10 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2009-01-29 09:08:36 -0800
commit337acf90c32cb0f3112b6a65398fa2aecff63105 (patch)
tree199c97be7bda350a85d868f929fe4de6375ad54b /archiso
parentdc7fbce918744cb47e21c7cf2eb2bf862834e464 (diff)
Increment usbdelay by 1 before sleeping
This should give us *just a bit* more delay before actually trying to do things with the usb devices. Annoying, but will probably be effective Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'archiso')
-rw-r--r--archiso/hooks/archiso5
1 files changed, 3 insertions, 2 deletions
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso
index 3df0dcc..d38cc30 100644
--- a/archiso/hooks/archiso
+++ b/archiso/hooks/archiso
@@ -57,8 +57,9 @@ run_hook ()
msg ":: Waiting for devices to settle..."
/sbin/udevadm trigger --subsystem-match=usb
/sbin/udevadm settle
- msg ":: Waiting ${usbdelay:-0}s for USB devices"
- /bin/sleep "${usbdelay:-0}"
+ usbdelay=$(( ${usbdelay:-0} + 1 ))
+ msg ":: Waiting ${usbdelay}s for USB devices"
+ /bin/sleep "${usbdelay}"
msg ":: Scanning for boot device..."