forked from Lainports/freebsd-ports
We have not checked for this KEYWORD for a long time now, so this is a complete noop, and thus no PORTREVISION bump. Removing it at this point is mostly for pedantic reasons, and partly to avoid perpetuating this anachronism by copy and paste to future scripts.
34 lines
665 B
Bash
34 lines
665 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: estctrl
|
|
# REQUIRE: est
|
|
|
|
# Define estctrl_* variables in one of these files:
|
|
# /etc/rc.conf
|
|
# /etc/rc.conf.local
|
|
# /etc/rc.conf.d/est
|
|
#
|
|
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
|
#
|
|
estctrl_enable="${estctrl_enable-NO}"
|
|
estctrl_speed_ac="adaptive"
|
|
estctrl_speed_battery="adaptive"
|
|
estctrl_speed_default="adaptive"
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="estctrl"
|
|
rcvar=`set_rcvar`
|
|
|
|
load_rc_config $name
|
|
|
|
command="%%PREFIX%%/sbin/estctrl"
|
|
command_args="-a ${estctrl_speed_ac}"
|
|
command_args="${command_args} -b ${estctrl_speed_battery}"
|
|
command_args="${command_args} -d ${estctrl_speed_default}"
|
|
command_args="${command_args} &"
|
|
|
|
run_rc_command "$1"
|