]> git.pld-linux.org Git - packages/athcool.git/blobdiff - athcool.init
- permit to specify action; athcool may be used to turnoff powersaving
[packages/athcool.git] / athcool.init
index 0cd47bba19f91c48d5fe4797b2d8a88fcf5fa8f3..3d0e0bb4c4a67f0b9da03524e70296991d09bf33 100644 (file)
@@ -3,13 +3,14 @@
 # athcool      This shell script takes care of starting athcool
 #
 # chkconfig:    2345 69 31
-# description: set power saving bit on Athlons(TM) with athcool
+# description: set/unset power saving bit on Athlons(TM) with athcool
 # processname: athcool
 
 # Source function library.
 . /etc/rc.d/init.d/functions
 
 ATHCOOL_RUN=no
+ATHCOOL_ACTION="on fixup"
 
 # Get service config
 [ -f /etc/sysconfig/athcool ] && . /etc/sysconfig/athcool
@@ -18,7 +19,7 @@ ATHCOOL_RUN=no
 case "$1" in
   start|restart|force-reload)
        if [ "$ATHCOOL_RUN" = "yes" ]; then
-               run_cmd "Starting Athlon Cooling" athcool on fix
+               run_cmd "Starting Athlon Cooling" athcool $ATHCOOL_ACTION
        fi
        ;;
   stop)
This page took 0.070438 seconds and 4 git commands to generate.