summaryrefslogtreecommitdiff
path: root/net/iet/files/ietd.in
blob: af3dfa333da2ca53df3be62d076e2e9798fdea60 (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
#!/bin/sh

# $FreeBSD$
#
# PROVIDE: ietd
# REQUIRE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name="ietd"
rcvar=ietd_enable

command=%%PREFIX%%/sbin/${name}
required_modules="%%PREFIX%%/modules/iet.ko:iet"
stop_precmd="ietd_prestop"

load_rc_config $name

: ${ietd_enable:="NO"}

ietd_prestop()
{
	%%PREFIX%%/sbin/ietadm --op delete
}

run_rc_command "$1"