aboutsummaryrefslogtreecommitdiff
path: root/net/gateway6/files/gateway6.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/gateway6/files/gateway6.in')
-rw-r--r--net/gateway6/files/gateway6.in35
1 files changed, 35 insertions, 0 deletions
diff --git a/net/gateway6/files/gateway6.in b/net/gateway6/files/gateway6.in
new file mode 100644
index 000000000000..4718b6683798
--- /dev/null
+++ b/net/gateway6/files/gateway6.in
@@ -0,0 +1,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"