Move /etc/conf.d/rc to /etc/rc.conf.

Lowercase all configurable variables, non configurations remain uppercase.
Replace rc_env_bool with rc_yesno.
Split localmount info procfs (Linux) and dumpon, savecore (BSD)
This commit is contained in:
Roy Marples
2007-11-23 12:04:11 +00:00
parent f077f179ed
commit d81def80b0
64 changed files with 755 additions and 477 deletions

View File

@@ -25,7 +25,7 @@
# SUCH DAMAGE.
command=/usr/sbin/powerd
command_args=${POWERD_ARGS}
command_args=${powerd_args}
pidfile=/var/run/powerd.pid
name="Power Control Daemon"
@@ -36,10 +36,19 @@ depend() {
}
start_pre() {
if [ -n "${BATTERY_MODE}" ]; then
command_args="${command_args} -b ${BATTERY_MODE}"
if [ -n "${powerd_battery_mode}" ]; then
command_args="${command_args} -b ${powerd_battery_mode}"
fi
if [ -n "${AC_MODE}" ]; then
command_args="${command_args} -a ${AC_MODE}"
if [ -n "${powerd_ac_mode}" ]; then
command_args="${command_args} -a ${powerd_ac_mode}"
fi
}
stop_post()
{
local level=$(sysctl -n dev.cpu.0.freq_levels |
sed -e 's:/.*::')
if [ -n "${level}" ]; then
sysctl dev.cpu.0.freq="${level}" >/dev/null
fi
}