opnsense-ports/net/linuxigd/files/linuxigd.in
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

28 lines
518 B
Bash

#!/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=linuxigd_enable
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"