diff options
author | Dirk Brenken <dev@brenken.org> | 2023-12-28 21:13:16 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2023-12-28 21:13:16 +0100 |
commit | 8c8a335eaf240802334c58fc5a076c33e8215056 (patch) | |
tree | 081b2db1a5257b488b95a59e9c310dbc70191298 /net | |
parent | 0198bd242c3d22886e18d9233f7984fed97e418b (diff) |
banip: update 0.9.3-3
* more init fixes
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/banip/Makefile | 2 | ||||
-rwxr-xr-x | net/banip/files/banip.init | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/net/banip/Makefile b/net/banip/Makefile index 4a6458f00..ca01ea048 100644 --- a/net/banip/Makefile +++ b/net/banip/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=banip PKG_VERSION:=0.9.3 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org> diff --git a/net/banip/files/banip.init b/net/banip/files/banip.init index 849bb894c..b49f933e3 100755 --- a/net/banip/files/banip.init +++ b/net/banip/files/banip.init @@ -24,7 +24,8 @@ ban_lock="/var/run/banip.lock" { [ "${action}" = "stop" ] || [ "${action}" = "report" ] || [ "${action}" = "search" ] || [ "${action}" = "survey" ] || [ "${action}" = "lookup" ]; } && ! "${ban_init}" running && exit 0 [ ! -r "${ban_funlib}" ] && { [ "${action}" = "boot" ] || [ "${action}" = "start" ] || [ "${action}" = "restart" ] || [ "${action}" = "reload" ] || [ "${action}" = "stop" ] || [ "${action}" = "report" ] || [ "${action}" = "search" ] || [ "${action}" = "lookup" ] || [ "${action}" = "status" ]; } && exit 1 [ -d "${ban_lock}" ] && { [ "${action}" = "boot" ] || [ "${action}" = "start" ] || [ "${action}" = "restart" ] || [ "${action}" = "reload" ] || [ "${action}" = "lookup" ]; } && exit 1 -[ ! -d "${ban_lock}" ] && { [ "${action}" = "boot" ] || [ "${action}" = "start" ] || [ "${action}" = "restart" ] || [ "${action}" = "reload" ] || [ "${action}" = "lookup" ]; } && { mkdir -p "${ban_lock}"; . "${ban_funlib}"; } +[ ! -d "${ban_lock}" ] && { [ "${action}" = "boot" ] || [ "${action}" = "start" ] || [ "${action}" = "restart" ] || [ "${action}" = "reload" ] || [ "${action}" = "lookup" ]; } && mkdir -p "${ban_lock}" +{ [ "${action}" = "boot" ] || [ "${action}" = "start" ] || [ "${action}" = "restart" ] || [ "${action}" = "reload" ] || [ "${action}" = "stop" ] || [ "${action}" = "report" ] || [ "${action}" = "search" ] || [ "${action}" = "lookup" ] || [ "${action}" = "status" ]; } && . "${ban_funlib}" [ ! -d "${ban_lock}" ] && { [ "${action}" = "boot" ] || [ "${action}" = "start" ] || [ "${action}" = "restart" ] || [ "${action}" = "reload" ] || [ "${action}" = "lookup" ]; } && exit 1 boot() { @@ -55,7 +56,6 @@ reload_service() { } stop_service() { - [ -z "${ban_ver}" ] && . "${ban_funlib}" "${ban_nftcmd}" delete table inet banIP >/dev/null 2>&1 f_genstatus "stopped" f_rmpid @@ -72,7 +72,6 @@ status() { } status_service() { - . "${ban_funlib}" f_getstatus } |