ports/net/gateway6/files/gateway6.sh.in
Kevin Lo c58387aed3 gateway6 rc script should REQUIRE NETWORKING instead of netif;
netif doesn't guarantee network is working, thus, it makes connection fail.

PR:	ports/157876
Submitted by:	Kuan-Chung Chiu <buganini at gmail dot com>
Reviewed by:	Michael Scholz (maintainer)
approved by:
2011-06-28 04:52:12 +00:00

35 lines
602 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
#
# PROVIDE: gateway6
# REQUIRE: FILESYSTEMS NETWORKING
# 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"