3
# Init file for cpufreqd
5
# chkconfig: 2345 65 35
6
# description: cpufreqd - CPU frequency scaling daemon \
7
# cpufreqd is meant to be a replacement of the speedstep applet you \
8
# can find on some other OS, it monitors battery level, AC state and \
9
# running programs and adjusts the frequency of the processor according to \
10
# a set of rules specified in the config file (see cpufreqd.conf (5)). \
11
# processname: cpufreqd
12
# pidfile: /var/run/arpd.pid
16
# Source function library.
17
. /etc/rc.d/init.d/functions
21
[ -d /sys/devices/system/cpu/cpu0/cpufreq ] || [ -f /proc/cpufreq ] || exit 0
25
gprintf "Starting cpufreqd : "
29
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/cpufreqd
35
gprintf "Stopping cpufreqd : "
38
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cpufreqd
60
if [ -f /var/log/subsys/cpufreqd ]; then
68
gprintf "Usage: %s {start|stop|restart|condrestart|status}\n" `basename $0`