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>
This commit is contained in:
Aaron Griffin 2009-01-29 09:07:10 -08:00
parent 7a98a216de
commit f852276274

View File

@ -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..."