summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2016-01-21 04:32:03 +0000
committerBen Hutchings <ben@decadent.org.uk>2016-01-21 04:34:49 +0000
commitc5b54aeca9e053d5e334d9f7c33fc5cb3989c35e (patch)
treea067950ce462d05702b51341a3836238dbdaa3ea /scripts
parent704bfa57c01457b6434bde93756b7c4e64f2e187 (diff)
scripts/functions: Use more sensible modprobe options at break=top
Use -a to load everything in one command. Use -q rather than -v when quiet=y. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/functions15
1 files changed, 7 insertions, 8 deletions
diff --git a/scripts/functions b/scripts/functions
index 2156ce5..f549ba4 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -57,14 +57,13 @@ maybe_break()
*,$1,*)
if [ "$1" = "top" ]; then
# udev is not yet running, so load keyboard drivers
- modprobe -v i8042 || true
- modprobe -v atkbd || true
- modprobe -v ehci-pci || true
- modprobe -v ehci-orion || true
- modprobe -v ehci-hcd || true
- modprobe -v uhci-hcd || true
- modprobe -v ohci-hcd || true
- modprobe -v usbhid || true
+ if [ "${quiet}" = "y" ]; then
+ opts="-q"
+ else
+ opts="-v"
+ fi
+ modprobe ${opts} -a i8042 atkbd ehci-pci ehci-orion \
+ ehci-hcd uhci-hcd ohci-hcd usbhid
fi
panic "Spawning shell within the initramfs"
;;