Last active
February 17, 2017 03:33
-
-
Save smartjj/e7751afdf9e569d9a5349cfc931633d4 to your computer and use it in GitHub Desktop.
SoftEther vpnbridge for FreeBSD 10.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# $FreeBSD: branches/2017Q1/net/softethervpn/files/vpnbridge.in 426359 2016-11-19 11:45:14Z hrs $ | |
# | |
# PROVIDE: vpnbridge | |
# REQUIRE: LOGIN | |
# | |
. /etc/rc.subr | |
name=vpnbridge | |
rcvar=${name}_enable | |
command=/root/sbin/${name} | |
start_cmd="${name}_start" | |
stop_cmd="${name}_stop" | |
vpnbridge_start() | |
{ | |
$command start | |
} | |
vpnbridge_stop() | |
{ | |
$command stop | |
} | |
load_rc_config $name | |
: ${vpnbridge_enable:=NO} | |
run_rc_command "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment