Skip to content

Instantly share code, notes, and snippets.

@smartjj
Last active February 17, 2017 03:33
Show Gist options
  • Save smartjj/e7751afdf9e569d9a5349cfc931633d4 to your computer and use it in GitHub Desktop.
Save smartjj/e7751afdf9e569d9a5349cfc931633d4 to your computer and use it in GitHub Desktop.
SoftEther vpnbridge for FreeBSD 10.3
#!/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