Browse Source

fwknop: Remove unnecessary get_bool() function.

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 <oldium.pro@gmail.com>
lilik-openwrt-22.03
Oldřich Jedlička 3 years ago
committed by Rosen Penev
parent
commit
b10c73f11c
2 changed files with 1 additions and 12 deletions
  1. +1
    -1
      net/fwknop/Makefile
  2. +0
    -11
      net/fwknop/files/fwknopd.init

+ 1
- 1
net/fwknop/Makefile View File

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


+ 0
- 11
net/fwknop/files/fwknopd.init View File

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


Loading…
Cancel
Save