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