]> git.pld-linux.org Git - packages/athcool.git/commitdiff
- added ATHCOOL_RUN option - by default do not run init script - this is
authorPaweł Gołaszewski <blues@pld-linux.org>
Fri, 8 Aug 2003 14:28:16 +0000 (14:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  dangerous and causes many problems on some motherboards

Changed files:
    athcool.init -> 1.3

athcool.init

index 847378aab7ba0f0f8a45819dda7f7b8b3f30016f..a44692572aeba52305e57e3afbd5d804da69394c 100644 (file)
@@ -9,13 +9,22 @@
 # Source function library.
 . /etc/rc.d/init.d/functions
 
+ATHCOOL_RUN=no
+
+# Get service config
+[ -f /etc/sysconfig/athcool ] && . /etc/sysconfig/athcool
+
 # See how we were called.
 case "$1" in
   start|restart|force-reload)
-       run_cmd "Starting Athlon Cooling" athcool on
+       if [ "$ATHCOOL_RUN" = "yes" ]; do
+               run_cmd "Starting Athlon Cooling" athcool on
+       done
        ;;
   stop)
-       run_cmd "Stoping Athlon Cooling" athcool off
+       if [ "$ATHCOOL_RUN" = "yes" ]; do
+               run_cmd "Stoping Athlon Cooling" athcool off
+       done    
        ;;
   status)
        athcool stat
This page took 0.115294 seconds and 4 git commands to generate.