[packages] openvpn: stop instances even if they are disabled (#9404)
[packages] openvpn: stop instances even if they are disabled (#9404)


git-svn-id: svn://svn.openwrt.org/openwrt/packages@26881 3c298f89-4303-0410-b956-a3cf2f4a3e73

--- a/net/openvpn/Makefile
+++ b/net/openvpn/Makefile
@@ -9,7 +9,7 @@
 
 PKG_NAME:=openvpn
 PKG_VERSION:=2.1.4
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://swupdate.openvpn.net/community/releases @SF/openvpn

--- a/net/openvpn/files/openvpn.init
+++ b/net/openvpn/files/openvpn.init
@@ -115,7 +115,7 @@
 
 	# disabled?
 	config_get_bool enable "$s" enable 0
-	[ "$enable" == 0 ] && return 0
+	[ "$enable" == 1 ] || [ "$S" == "TERM" ] || return 0
 
 	PID="/var/run/openvpn-$s.pid"
 

comments