ports/net/linuxigd/files/linuxigd.in
Yen-Ming Lee f4e93f459e - update to 1.0
- drop maintainership

Note: I myself no longer use linuxigd, and I don't have environment to
      test it. Now it builds and runs, but not sure if it works.
      Please test it by yourself.
2007-06-16 12:49:58 +00:00

28 lines
513 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"
#
. %%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"