summaryrefslogtreecommitdiff
path: root/security/softether-devel/files/vpnclient.in
blob: c099dbea9c011f5f2cee201926100e3a67d3ffc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: vpnclient
# REQUIRE: LOGIN
#
. /etc/rc.subr

name=vpnclient
rcvar=${name}_enable
command=%%PREFIX%%/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"