X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=athcool.init;fp=athcool.init;h=7bf56750e3b5f29c66bbe9d1787b93f9d4215dae;hb=1c56840f9b5b95e20ed03b24c9c0763e09606f96;hp=0000000000000000000000000000000000000000;hpb=5df4c969b04e80cfe7d067fd803e54320d6597ca;p=packages%2Fathcool.git diff --git a/athcool.init b/athcool.init new file mode 100644 index 0000000..7bf5675 --- /dev/null +++ b/athcool.init @@ -0,0 +1,26 @@ +#!/bin/sh +# +# athcool This shell script takes care of starting athcool +# +# chkconfig: 2345 69 31 +# description: set power saving bit on Athlons(TM) with athcool +# processname: athcool + +# Source function library. +. /etc/rc.d/init.d/functions + +# See how we were called. +case "$1" in + start|restart) + run_cmd "Starting Athlon Cooling" athcool on + ;; + stop) + run_cmd "Stoping Athlon Cooling" athcool off + ;; + status) + athcool stat + ;; + *) + msg_usage "$0 {start|stop|restart|status}" + exit 1 +esac