[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
This commit is contained in:
jow 2011-05-13 06:31:41 +00:00
parent 1f6802f0c8
commit 6f7753edf3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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"