X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=mpt-status.init;h=5209872c8f779c5b6fc2a795855a09accc7cf0ea;hb=25b013a48c5028333a17745a0ee27b60488308a6;hp=65b2e79bdccc9986b43e77b5aebf86a53adc36da;hpb=b417e89bc0b10bef788620ed0a86d9edd896da39;p=sven%2Fmpt-status.git diff --git a/mpt-status.init b/mpt-status.init index 65b2e79..5209872 100644 --- a/mpt-status.init +++ b/mpt-status.init @@ -47,10 +47,14 @@ if [ $RUN_DAEMON = "no" ] ; then exit 0 fi -#if ! [ -e "/proc/mpt/version" ] ; then -# log_failure_msg "The mptctl module is missing." -# 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 +fi check_mpt() { echo $$ > $PIDFILE.new && mv $PIDFILE.new $PIDFILE @@ -175,7 +179,7 @@ case "$1" in d_start ;; stop) - log_begin_msg "Stopping $DESC: $NAME" + echo -n $"Stopping $DESC: $NAME" d_stop ;; check_mpt)