From 5145aadc22f32327f72271b9a4a1316f40efb460 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 29 Nov 2011 15:58:17 +0000 Subject: [PATCH] [packages] openvpn: accept both "option enable" and "option enabled" SVN-Revision: 29355 --- net/openvpn/Makefile | 2 +- net/openvpn/files/openvpn.init | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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() { -- 2.30.2