2005-02-26 21:18:54 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: powerd
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# BEFORE: LOGIN
|
|
|
|
# KEYWORD: nojail
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="powerd"
|
|
|
|
rcvar=`set_rcvar`
|
2005-10-28 16:55:38 +00:00
|
|
|
command="/usr/sbin/${name}"
|
2006-08-27 11:04:39 +00:00
|
|
|
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"
|