diff options
Diffstat (limited to 'net/vtun/files/vtunclient.in')
-rw-r--r-- | net/vtun/files/vtunclient.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net/vtun/files/vtunclient.in b/net/vtun/files/vtunclient.in new file mode 100644 index 000000000000..7679ac50724e --- /dev/null +++ b/net/vtun/files/vtunclient.in @@ -0,0 +1,26 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: vtunclient +# REQUIRE: DAEMON +# +# Add the following line to /etc/rc.conf to enable vtunclient: +# +# vtunclient_enable="YES" +# vtunclient_flags="<session> <server address>" +# + +vtunclient_enable=${vtunclient_enable:-"NO"} +vtunclient_flags=${vtunclient_flags:-""} + +. %%RC_SUBR%% + +name=vtunclient +rcvar=`set_rcvar` +required_files="%%PREFIX%%/etc/vtund.conf" + +command=%%PREFIX%%/sbin/vtund + +load_rc_config $name +run_rc_command "$1" |