freebsd-dev/etc/rc.d/powerd

26 lines
361 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
. /etc/rc.subr
name="powerd"
rcvar=`set_rcvar`
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"