blob: 83630fc1ed18ecc1013f70ff6c5582abac12a330 (
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
|
#!/bin/sh
# PROVIDE: linuxigd
# REQUIRE: NETWORKING SERVERS
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable linuxigd:
#
# linuxigd_enable="YES"
#
. /etc/rc.subr
name=linuxigd
rcvar=`set_rcvar`
load_rc_config $name
command=%%PREFIX%%/sbin/upnpd
required_files="%%PREFIX%%/etc/linuxigd/gatedesc.xml %%PREFIX%%/etc/upnpd.conf"
: ${linuxigd_enable="NO"}
: ${linuxigd_extif="fxp0"}
: ${linuxigd_intif="fxp1"}
: ${command_args="${linuxigd_extif} ${linuxigd_intif}"}
run_rc_command "$1"
|