Browse Source

Merge pull request #5264 from TDT-AG/pr/20171211-net-stunnel-add-uci-enabled-param

net/stunnel: add enabled config option
lilik-openwrt-22.03
Hannu Nyman 7 years ago
committed by GitHub
parent
commit
1b42af5931
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions
  1. +3
    -2
      net/stunnel/Makefile
  2. +4
    -1
      net/stunnel/files/stunnel.init

+ 3
- 2
net/stunnel/Makefile View File

@ -9,10 +9,11 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=stunnel PKG_NAME:=stunnel
PKG_VERSION:=5.44 PKG_VERSION:=5.44
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=GPL-2.0+ PKG_LICENSE:=GPL-2.0+
PKG_MAINTAINER:=Daniel Engberg <daniel.engberg.lists@pyret.net>
PKG_MAINTAINER:=Daniel Engberg <daniel.engberg.lists@pyret.net> \
Florian Eckert <fe@dev.tdt.de>
PKG_LICENSE_FILES:=COPYING COPYRIGHT.GPL PKG_LICENSE_FILES:=COPYING COPYRIGHT.GPL
PKG_SOURCE_URL:= \ PKG_SOURCE_URL:= \


+ 4
- 1
net/stunnel/files/stunnel.init View File

@ -81,7 +81,10 @@ print_list_colon() {
service_section() { service_section() {
local cfg="$1" local cfg="$1"
local accept_host accept_port
local accept_host accept_port enabled
config_get_bool enabled "$cfg" 'enabled' '1'
[ ${enabled} -gt 0 ] || return 0
printf "\n" >> "$CONF_FILE" printf "\n" >> "$CONF_FILE"
printf "[%s]\n" "$cfg" >> "$CONF_FILE" printf "[%s]\n" "$cfg" >> "$CONF_FILE"


Loading…
Cancel
Save