diff options
Diffstat (limited to 'net/linuxigd/files/linuxigd.in')
-rw-r--r-- | net/linuxigd/files/linuxigd.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/linuxigd/files/linuxigd.in b/net/linuxigd/files/linuxigd.in new file mode 100644 index 000000000000..4715ecf7eacd --- /dev/null +++ b/net/linuxigd/files/linuxigd.in @@ -0,0 +1,28 @@ +#!/bin/sh + +# PROVIDE: linuxigd +# REQUIRE: NETWORKING SERVERS +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable linuxigd: +# +# linuxigd_enable="YES" +# + +. %%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" |