summaryrefslogtreecommitdiff
path: root/archiso/hooks/archiso-early
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-01-24 20:17:54 -0600
committerAaron Griffin <aaronmgriffin@gmail.com>2009-01-24 20:17:54 -0600
commit8a37489379914910a140c313ca50a5e502f9f92e (patch)
treed70947b516d40fa730c1d6cac4b231a5169822d2 /archiso/hooks/archiso-early
parent7b2dea215ed5a1a088c5cc5f40358094906a3487 (diff)
downloadarchiso32-8a37489379914910a140c313ca50a5e502f9f92e.tar.xz
Advanced USB delay handling
USB boot delay is now handled with the usbdelay kernel param (default=0) We use the built in delay of usb-storage to control this. by setting the module's delay param. If your USB device doesn't work on first boot, try setting usbdelay=10 or so Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'archiso/hooks/archiso-early')
-rw-r--r--archiso/hooks/archiso-early8
1 files changed, 8 insertions, 0 deletions
diff --git a/archiso/hooks/archiso-early b/archiso/hooks/archiso-early
new file mode 100644
index 0000000..0a83218
--- /dev/null
+++ b/archiso/hooks/archiso-early
@@ -0,0 +1,8 @@
+# vim: set ft=sh:
+run_hook ()
+{
+ # Set our usbdelay time. Default: 0
+ /bin/mkdir -p /etc/modprobe.d/
+ echo "options usb-storage delay_use=${usbdelay:-0}" >/
+ /etc/modprobe.d/usb-delay
+}