aboutsummaryrefslogtreecommitdiffstats
path: root/net/vtun/files/vtund.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/vtun/files/vtund.sh')
-rw-r--r--net/vtun/files/vtund.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/vtun/files/vtund.sh b/net/vtun/files/vtund.sh
new file mode 100644
index 000000000000..f218c3a449a4
--- /dev/null
+++ b/net/vtun/files/vtund.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: vtund
+# REQUIRE: DAEMON
+# KEYWORD: FreeBSD
+#
+# Add the following line to /etc/rc.conf to enable vtund:
+#
+# vtund_enable="YES"
+#
+
+vtund_enable=${vtund_enable:-"NO"}
+vtund_flags=${vtund_flags:-"-s"}
+
+. %%RC_SUBR%%
+
+name=vtund
+rcvar=`set_rcvar`
+required_files="%%PREFIX%%/etc/vtund.conf"
+
+command=%%PREFIX%%/sbin/vtund
+
+load_rc_config $name
+run_rc_command "$1"