]> git.sven.stormbind.net Git - sven/mpt-status.git/blobdiff - mpt-status.init
Blindly load the mptctl module.
[sven/mpt-status.git] / mpt-status.init
index 65b2e79bdccc9986b43e77b5aebf86a53adc36da..5209872c8f779c5b6fc2a795855a09accc7cf0ea 100644 (file)
@@ -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)