security/openconnect: update rc script; closes #980

This commit is contained in:
Michael
2018-12-03 22:00:43 +01:00
committed by Franco Fichtner
parent 74d17e5567
commit c9a3f4272b
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= openconnect
PLUGIN_VERSION= 1.3.1
PLUGIN_VERSION= 1.3.2
PLUGIN_COMMENT= OpenConnect Client
PLUGIN_DEPENDS= openconnect
PLUGIN_MAINTAINER= m.muenz@gmail.com
@@ -24,7 +24,6 @@ secret=/usr/local/etc/openconnect.secret
[ -z "$openconnect_enable" ] && openconnect_enable="NO"
# status of openconnect
openconnect_status()
{
if [ -n "$rc_pid" ]; then
@@ -35,16 +34,17 @@ openconnect_status()
fi
}
# stop openconnect
openconnect_stop()
{
echo "stopping openconnect"
killall openconnect
ifconfig ocvpn0 destroy
return 0
if [ -n "$rc_pid" ]; then
echo "stopping openconnect"
ifconfig ocvpn0 name tun30000
kill -2 ${rc_pid}
else
echo "${name} is not running."
fi
}
# start openconnect
openconnect_start()
{
echo "starting openconnect"