1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/sysutils/est/files/est.sh
Edwin Groothuis d2d87f21b3 [MAINTAINER UPDATE] sysutils/est
Update port to version 0.6.  This adds a sysctl "hw.est_verbose"
    which controls whether frequency changes are logged, and converts
    the rc.d script to use the rcNG framework.

    Note that the module will now only load if 'est_enable="YES"'
    appears in rc.conf, rc.conf.local, or rc.conf.d/est.

PR:		ports/71269
Submitted by:	Colin Percival <cperciva@daemonology.net>
2004-09-02 04:14:21 +00:00

45 lines
598 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: est
# REQUIRE: abi
# BEFORE: securelevel
# KEYWORD: FreeBSD
# Define est_* 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
#
est_enable="NO"
est_verbose="NO"
. %%RC_SUBR%%
name="est"
rcvar=`set_rcvar`
start_cmd="est_start"
stop_cmd="est_stop"
load_rc_config $name
kmoddir="%%PREFIX%%/modules"
est_start () {
/sbin/kldload ${kmoddir}/est.ko
if checkyesno est_verbose; then
sysctl hw.est_verbose=1
fi
}
est_stop () {
/sbin/kldunload $name
}
run_rc_command "$1"