freebsd-dev/etc/rc.d/powerd

26 lines
374 B
Plaintext
Raw Normal View History

2005-02-26 21:18:54 +00:00
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: powerd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: nojail shutdown
2005-02-26 21:18:54 +00:00
. /etc/rc.subr
name="powerd"
rcvar="powerd_enable"
command="/usr/sbin/${name}"
stop_postcmd=powerd_poststop
powerd_poststop()
{
sysctl dev.cpu.0.freq=`sysctl -n dev.cpu.0.freq_levels |
sed -e 's:/.*::'` > /dev/null
}
2005-02-26 21:18:54 +00:00
load_rc_config $name
run_rc_command "$1"