From: Jo-Philipp Wich Date: Fri, 13 May 2011 06:31:41 +0000 (+0000) Subject: [packages] openvpn: stop instances even if they are disabled (#9404) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fbfd11e74f538215d2741b990dbb1ec9ea05f97b;p=openwrt%2Fsvn-archive%2Farchive.git [packages] openvpn: stop instances even if they are disabled (#9404) SVN-Revision: 26881 --- diff --git a/net/openvpn/Makefile b/net/openvpn/Makefile index 8cb813f26a..4cf8d0eb3d 100644 --- a/net/openvpn/Makefile +++ b/net/openvpn/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk 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 diff --git a/net/openvpn/files/openvpn.init b/net/openvpn/files/openvpn.init index 658498d5d8..0fee06d8d4 100644 --- a/net/openvpn/files/openvpn.init +++ b/net/openvpn/files/openvpn.init @@ -115,7 +115,7 @@ kill_service() { # disabled? config_get_bool enable "$s" enable 0 - [ "$enable" == 0 ] && return 0 + [ "$enable" == 1 ] || [ "$S" == "TERM" ] || return 0 PID="/var/run/openvpn-$s.pid"