mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
1dcb6ad173
(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"
|