c690e33e8e
(i.e., what it was almost certainly at before powerd was started). Submitted by: R.B. Riddick MFC after: 3 days
26 lines
361 B
Bash
26 lines
361 B
Bash
#!/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
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|