scripts/functions: panic() don't abort on modprobe failures

This is not the point one wants to see the function to abort,
if modprobe fails on one of those modules, just continue.

Closes: #674484
Reported-by: Frédéric Brière <fbriere@fbriere.net>
Signed-off-by: maximilian attems <max@stro.at>
This commit is contained in:
maximilian attems 2012-06-04 23:40:30 +02:00
parent 3ff8ee6f3e
commit df4ffdf97c

View File

@ -44,12 +44,12 @@ panic()
sleep ${panic}
reboot
fi
modprobe -v i8042
modprobe -v atkbd
modprobe -v ehci-hcd
modprobe -v uhci-hcd
modprobe -v ohci-hcd
modprobe -v usbhid
modprobe -v i8042 || true
modprobe -v atkbd || true
modprobe -v ehci-hcd || true
modprobe -v uhci-hcd || true
modprobe -v ohci-hcd || true
modprobe -v usbhid || true
REASON="$@" PS1='(initramfs) ' /bin/sh -i </dev/console >/dev/console 2>&1
}