From df4ffdf97c609381d65328271cec422f1011e08c Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Mon, 4 Jun 2012 23:40:30 +0200 Subject: [PATCH] scripts/functions: panic() don't abort on modprobe failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: maximilian attems --- scripts/functions | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/functions b/scripts/functions index f40b1f8..6e74ade 100644 --- a/scripts/functions +++ b/scripts/functions @@ -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 2>&1 }