[packages] openvpn: accept both "option enable" and "option enabled"

git-svn-id: svn://svn.openwrt.org/openwrt/packages@29355 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-11-29 15:58:17 +00:00
parent 124c94c90a
commit 7fad394383
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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() {