From c2612d337e483c441edb062d2a5255cd15f18de2 Mon Sep 17 00:00:00 2001 From: sparky Date: Tue, 1 Mar 2005 12:26:26 +0000 Subject: [PATCH] - permit to specify action; athcool may be used to turnoff powersaving bit but services with K are not killed on startup Changed files: athcool.init -> 1.7 athcool.sysconfig -> 1.2 --- athcool.init | 5 +++-- athcool.sysconfig | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/athcool.init b/athcool.init index 0cd47bb..3d0e0bb 100644 --- a/athcool.init +++ b/athcool.init @@ -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) diff --git a/athcool.sysconfig b/athcool.sysconfig index a7023ab..d4949d6 100644 --- a/athcool.sysconfig +++ b/athcool.sysconfig @@ -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" -- 2.44.0