#!/bin/sh
#
# $FreeBSD: ports/sysutils/estctrl/files/estctrl.sh,v 1.5 2006/02/20 20:47:42 dougb Exp $
#
# 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"
. /etc/rc.subr
name="estctrl"
rcvar=`set_rcvar`
load_rc_config $name
command="/usr/local/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"
syntax highlighted by Code2HTML, v. 0.9.1