banIP: update 0.3.8 10506/head
authorDirk Brenken <dev@brenken.org>
Sat, 9 Nov 2019 05:40:40 +0000 (06:40 +0100)
committerDirk Brenken <dev@brenken.org>
Sat, 9 Nov 2019 05:40:40 +0000 (06:40 +0100)
* limit firewall hotplug trigger to certain wan 'INTERFACE' as well,
  to prevent possible race conditions during boot

Signed-off-by: Dirk Brenken <dev@brenken.org>
net/banip/Makefile
net/banip/files/banip.hotplug
net/banip/files/banip.sh

index cca5303b2e5cfee7fd621818b58e2c3e8a46e4df..5cd5bcb9b2f1c3252a92c98a855e4903dc06addf 100644 (file)
@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=banip
-PKG_VERSION:=0.3.7
+PKG_VERSION:=0.3.8
 PKG_RELEASE:=1
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
index f021fcff074e4c6e8289f9af5b18bbcf253d5fa4..7807e7c46cb50f70278a832a14f7bf92f22c7fbe 100644 (file)
@@ -1,8 +1,11 @@
 #!/bin/sh
 #
-
 [ "${ACTION}" != "add" ] && exit 0
 
+ban_iface="wan"
+[ -r "/lib/functions/network.sh" ] && { . "/lib/functions/network.sh"; network_find_wan ban_iface; }
+[ "${INTERFACE}" != "${ban_iface}" ] && exit 0
+
 ban_pidfile="/var/run/banip.pid"
 ban_enabled="$(/etc/init.d/banip enabled; printf "%u" "${?}")"
 if [ "${ban_enabled}" = "0" ] && [ ! -s "${ban_pidfile}" ]
index 743ea4d740aea07853bcf3745a631cc5af8ece7b..51345138ff71ecff5ddacc2ae2e7e651e8b10f5c 100755 (executable)
@@ -13,7 +13,7 @@
 #
 LC_ALL=C
 PATH="/usr/sbin:/usr/bin:/sbin:/bin"
-ban_ver="0.3.7"
+ban_ver="0.3.8"
 ban_basever=""
 ban_enabled=0
 ban_automatic="1"