3
PATH=/sbin:/bin:/usr/sbin:/usr/bin
4
DAEMON=/usr/sbin/powernowd
8
test -x $DAEMON || exit 0
10
# create the file /etc/default/powernowd if you want to override the value of
11
# variable OPTIONS and change the default behavior of the daemon as launched
14
[ -f /etc/default/$NAME ] && . /etc/default/$NAME
20
echo -n "Starting $DESC: "
21
if [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]
23
start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- $OPTIONS
25
echo "required sysfs objects not found!"
26
echo -e "\tRead /usr/share/doc/powernowd/README.Debian for more information."
32
echo -n "Stopping $DESC: "
33
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
37
echo -n "Restarting $DESC: "
38
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
40
start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- $OPTIONS
45
echo "Usage: $N {start|stop|restart|force-reload}" >&2