diff options
Diffstat (limited to 'sysutils/est/files/est.in')
-rw-r--r-- | sysutils/est/files/est.in | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sysutils/est/files/est.in b/sysutils/est/files/est.in new file mode 100644 index 000000000000..5db37e38eb9f --- /dev/null +++ b/sysutils/est/files/est.in @@ -0,0 +1,43 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/sysutils/est/files/Attic/est.in,v 1.1 2006-03-18 00:32:05 cperciva Exp $ +# + +# PROVIDE: est +# REQUIRE: abi +# BEFORE: securelevel + +# 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="${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" |