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>
This commit is contained in:
parent
ccf1b96e0e
commit
b10c73f11c
2 changed files with 1 additions and 12 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=fwknop
|
PKG_NAME:=fwknop
|
||||||
PKG_VERSION:=2.6.10
|
PKG_VERSION:=2.6.10
|
||||||
PKG_RELEASE:=6
|
PKG_RELEASE:=7
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=https://www.cipherdyne.org/fwknop/download
|
PKG_SOURCE_URL:=https://www.cipherdyne.org/fwknop/download
|
||||||
|
|
|
@ -44,17 +44,6 @@ service_triggers()
|
||||||
fi
|
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()
|
generate_configuration()
|
||||||
{
|
{
|
||||||
[ -f /tmp/access.conf.tmp ] && rm /tmp/access.conf.tmp
|
[ -f /tmp/access.conf.tmp ] && rm /tmp/access.conf.tmp
|
||||||
|
|
Loading…
Reference in a new issue