]>
Commit | Line | Data |
---|---|---|
1c56840f PG |
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 | ||
a7b39692 PG |
12 | ATHCOOL_RUN=no |
13 | ||
14 | # Get service config | |
15 | [ -f /etc/sysconfig/athcool ] && . /etc/sysconfig/athcool | |
16 | ||
1c56840f PG |
17 | # See how we were called. |
18 | case "$1" in | |
5cd02309 | 19 | start|restart|force-reload) |
95d68f10 | 20 | if [ "$ATHCOOL_RUN" = "yes" ]; then |
b1e4b678 | 21 | run_cmd "Starting Athlon Cooling" athcool on fix |
3cd98d2d | 22 | fi |
1c56840f PG |
23 | ;; |
24 | stop) | |
95d68f10 | 25 | if [ "$ATHCOOL_RUN" = "yes" ]; then |
a7b39692 | 26 | run_cmd "Stoping Athlon Cooling" athcool off |
3cd98d2d | 27 | fi |
1c56840f PG |
28 | ;; |
29 | status) | |
30 | athcool stat | |
31 | ;; | |
32 | *) | |
5cd02309 | 33 | msg_usage "$0 {start|stop|restart|force-reload|status}" |
34 | exit 3 | |
1c56840f | 35 | esac |