freebsd-ports/net/gateway6/files/gateway6.sh.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

35 lines
597 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
#
# PROVIDE: gateway6
# REQUIRE: FILESYSTEMS netif
# KEYWORD: shutdown
#
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable the IPv6 tunnel to Freenet6.net:
#
# gateway6_enable (bool): Set to NO by default.
# Set it to YES to enable gateway6.
# gateway6_flags (flags): Set to "" by default.
#
# See gw6c(8) for gateway6_flags
#
. /etc/rc.subr
name="gateway6"
rcvar=`set_rcvar`
command=%%PREFIX%%/bin/gw6c
required_files=%%PREFIX%%/etc/gw6c.conf
load_rc_config $name
: ${gateway6_enable="NO"}
run_rc_command "$1"