]> git.pld-linux.org Git - packages/athcool.git/blob - athcool.init
This commit was manufactured by cvs2git to create tag 'STABLE'.
[packages/athcool.git] / athcool.init
1 #!/bin/sh
2 #
3 # athcool       This shell script takes care of starting athcool
4 #
5 # chkconfig:    2345 69 31
6 # description:  set power saving bit on Athlons(TM) with athcool
7 # processname:  athcool
8
9 # Source function library.
10 . /etc/rc.d/init.d/functions
11
12 ATHCOOL_RUN=no
13
14 # Get service config
15 [ -f /etc/sysconfig/athcool ] && . /etc/sysconfig/athcool
16
17 # See how we were called.
18 case "$1" in
19   start|restart|force-reload)
20         if [ "$ATHCOOL_RUN" = "yes" ]; then
21                 run_cmd "Starting Athlon Cooling" athcool on
22         fi
23         ;;
24   stop)
25         if [ "$ATHCOOL_RUN" = "yes" ]; then
26                 run_cmd "Stoping Athlon Cooling" athcool off
27         fi      
28         ;;
29   status)
30         athcool stat
31         ;;
32   *)
33         msg_usage "$0 {start|stop|restart|force-reload|status}"
34         exit 3
35 esac
This page took 0.54603 seconds and 3 git commands to generate.