From: Sven Hoexter Date: Mon, 17 Oct 2011 10:39:39 +0000 (+0200) Subject: Blindly load the mptctl module. X-Git-Tag: 1.2.0-3~5 X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fmpt-status.git;a=commitdiff_plain;h=25b013a48c5028333a17745a0ee27b60488308a6 Blindly load the mptctl module. Usually that's what you want when you install this package anyway though this might be a source for confusion, because you can load the mptbase and mptctl module without some mpt hardware in your system. --- diff --git a/mpt-status.init b/mpt-status.init index f9366ff..5209872 100644 --- a/mpt-status.init +++ b/mpt-status.init @@ -47,6 +47,10 @@ if [ $RUN_DAEMON = "no" ] ; then exit 0 fi + +#Try to blindly load the mptctl module +modprobe mptctl || true + if ! [ -e "/proc/mpt/version" ] ; then log_failure_msg "The mptctl module is missing." exit 0