blob: 9cb4949168031d78253ff2233273f2b3e95b9f19 (
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
35
36
37
38
39
40
41
42
43
|
#!/bin/sh
#
# $FreeBSD$
#
# 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"
|