]> git.pld-linux.org Git - packages/lm_sensors.git/commitdiff
- i think this is correct
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 27 Sep 2006 13:41:23 +0000 (13:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fancontrol.init -> 1.3

fancontrol.init

index 55be28d4a51295ef9742a1fb927121ca7c501475..85e5446022809123a5aa6876606ad25ec420b73c 100644 (file)
 # Source function library
 . /etc/rc.d/init.d/functions
 
-# Get service config - may override defaults
-# [ -f /etc/sysconfig/fancontrol ] && . /etc/sysconfig/fancontrol
+# Get service config
+ [ -f /etc/sysconfig/fancontrol ] && . /etc/sysconfig/fancontrol
 
 start() {
-       # Fancontrol needs to check system for pwm control
-       if [ ! -f /etc/sysconfig/fancontrol ]; then
-               nls "Fancontrol not initialized."
-               nls "Try \`%s init' before start." "$0"
-               exit 6
-       fi
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/fancontrol ]; then
+               # Fancontrol needs to check system for pwm control
+               if [ ! -f /etc/sysconfig/fancontrol ]; then
+                       nls "Fancontrol not initialized."
+                       nls "Try \`%s init' before start." "$0"
+                       exit 6
+               fi
+
                msg_starting fancontrol
                daemon fancontrol
                RETVAL=$?
@@ -72,7 +73,7 @@ case "$1" in
                killproc fancontrol -HUP
                RETVAL=$?
        else
-               msg_not_running fancontrol >&2
+               msg_not_running fancontrol
                RETVAL=7
        fi
        ;;
This page took 0.040591 seconds and 4 git commands to generate.