aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/estctrl/files/estctrl.sh
blob: b34984b7beb3c0b45d507a9b67137988f7e09724 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/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"