From: Jo-Philipp Wich Date: Tue, 29 Nov 2011 15:58:17 +0000 (+0000) Subject: [packages] openvpn: accept both "option enable" and "option enabled" X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5145aadc22f32327f72271b9a4a1316f40efb460;p=openwrt%2Fsvn-archive%2Farchive.git [packages] openvpn: accept both "option enable" and "option enabled" SVN-Revision: 29355 --- diff --git a/net/openvpn/Makefile b/net/openvpn/Makefile index 53dcd98119..c80c587e22 100644 --- a/net/openvpn/Makefile +++ b/net/openvpn/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=openvpn PKG_VERSION:=2.2.1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 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 3ff1cd6923..c5f3f95ca8 100644 --- a/net/openvpn/files/openvpn.init +++ b/net/openvpn/files/openvpn.init @@ -58,8 +58,9 @@ append_params_quoted() { } section_enabled() { + config_get_bool enable "$1" 'enable' 0 config_get_bool enabled "$1" 'enabled' 0 - [ $enabled -gt 0 ] + [ $enable -gt 0 ] || [ $enabled -gt 0 ] } start_instance() {