]> git.pld-linux.org Git - packages/athcool.git/commitdiff
- permit to specify action; athcool may be used to turnoff powersaving
authorsparky <sparky@pld-linux.org>
Tue, 1 Mar 2005 12:26:26 +0000 (12:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  bit but services with K are not killed on startup

Changed files:
    athcool.init -> 1.7
    athcool.sysconfig -> 1.2

athcool.init
athcool.sysconfig

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)
index a7023ab53f630e4c9e3f4c906ad83f8955b42b51..d4949d653a509ed2f880745aec5944957b9272b4 100644 (file)
@@ -12,3 +12,8 @@
 #
 # If you still want this - uncomment this line:
 #ATHCOOL_RUN=yes
+
+# Action that athcool should perform when starting service. Normally it is
+# "on" or "on fixup", but some people nead to turnoff powersaving bit
+# on startup.
+ATHCOOL_ACTION="on fixup"
This page took 0.055758 seconds and 4 git commands to generate.