From b10c73f11c1cfe4f56ed71699c73f9d84f844755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Old=C5=99ich=20Jedli=C4=8Dka?= Date: Sat, 9 Jan 2021 21:41:40 +0100 Subject: [PATCH] fwknop: Remove unnecessary get_bool() function. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The get_bool() functionality was already merged to lib/functions.sh, so it is redundant in the init script. Remove it. Signed-off-by: Oldřich Jedlička --- net/fwknop/Makefile | 2 +- net/fwknop/files/fwknopd.init | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/net/fwknop/Makefile b/net/fwknop/Makefile index cfcf8a27f..f594def4c 100644 --- a/net/fwknop/Makefile +++ b/net/fwknop/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fwknop PKG_VERSION:=2.6.10 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://www.cipherdyne.org/fwknop/download diff --git a/net/fwknop/files/fwknopd.init b/net/fwknop/files/fwknopd.init index 4c07d15d8..de3cd38e0 100644 --- a/net/fwknop/files/fwknopd.init +++ b/net/fwknop/files/fwknopd.init @@ -44,17 +44,6 @@ service_triggers() fi } -get_bool() -{ - local _tmp="${1}" - case "${_tmp}" in - 1|on|true|yes|enabled) _tmp=1;; - 0|off|false|no|disabled) _tmp=0;; - *) _tmp="${2}";; - esac - echo -n "${_tmp}" -} - generate_configuration() { [ -f /tmp/access.conf.tmp ] && rm /tmp/access.conf.tmp