Changeset 29355


Ignore:
Timestamp:
2011-11-29T16:58:17+01:00 (6 years ago)
Author:
jow
Message:

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

Location:
packages/net/openvpn
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/openvpn/Makefile

    r29184 r29355  
    1010PKG_NAME:=openvpn 
    1111PKG_VERSION:=2.2.1 
    12 PKG_RELEASE:=3 
     12PKG_RELEASE:=4 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/openvpn/files/openvpn.init

    r29184 r29355  
    5959 
    6060section_enabled() { 
     61        config_get_bool enable  "$1" 'enable'  0 
    6162        config_get_bool enabled "$1" 'enabled' 0 
    62         [ $enabled -gt 0 ] 
     63        [ $enable -gt 0 ] || [ $enabled -gt 0 ] 
    6364} 
    6465 
Note: See TracChangeset for help on using the changeset viewer.