summaryrefslogtreecommitdiff
path: root/archiso/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'archiso/hooks')
-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..."