Skip to content

Instantly share code, notes, and snippets.

@smartjj
Last active February 17, 2017 03:33
Show Gist options
  • Save smartjj/1e941bc0d6e68e9b02f2bdbc63e6e743 to your computer and use it in GitHub Desktop.
Save smartjj/1e941bc0d6e68e9b02f2bdbc63e6e743 to your computer and use it in GitHub Desktop.
SoftEther vpnclient for FreeBSD 10.3
#!/bin/sh
#
# $FreeBSD: branches/2017Q1/net/softethervpn/files/vpnclient.in 426359 2016-11-19 11:45:14Z hrs $
#
# PROVIDE: vpnclient
# REQUIRE: LOGIN
#
. /etc/rc.subr
name=vpnclient
rcvar=${name}_enable
command=/root/sbin/${name}
start_cmd="${name}_start"
stop_cmd="${name}_stop"
vpnclient_start()
{
$command start
}
vpnclient_stop()
{
$command stop
}
load_rc_config $name
: ${vpnclient_enable:=NO}
run_rc_command "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment