blob: 4718b6683798a7e687f98ee440ed3a174738dc6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/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=gateway6_enable
command=%%PREFIX%%/bin/gw6c
required_files=%%PREFIX%%/etc/gw6c.conf
load_rc_config $name
: ${gateway6_enable="NO"}
run_rc_command "$1"
|