#!/bin/sh
#
# $FreeBSD: ports/net/gateway6/files/gateway6.sh.in,v 1.2 2007/10/06 11:34:27 stefan Exp $
#

#
# 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.
#

. /etc/rc.subr

name="gateway6"
rcvar=`set_rcvar`

command=/usr/local/bin/gw6c
required_files=/usr/local/etc/gw6c.conf

load_rc_config $name

: ${gateway6_enable="NO"}
: ${gateway6_flags=""}

run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1