aboutsummaryrefslogtreecommitdiff
path: root/net/banip/files
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2019-11-09 06:40:40 +0100
committerDirk Brenken <dev@brenken.org>2019-11-09 06:40:40 +0100
commit0dee2a92de0ffdc5007e41802a43456ce3b5bf22 (patch)
treefa9e96d1dae30c708b431ebd061ff342ff74302b /net/banip/files
parent49b43b81e8a8c32465d3de921d8289541de3e7e1 (diff)
banIP: update 0.3.8
* 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>
Diffstat (limited to 'net/banip/files')
-rw-r--r--net/banip/files/banip.hotplug5
-rwxr-xr-xnet/banip/files/banip.sh2
2 files changed, 5 insertions, 2 deletions
diff --git a/net/banip/files/banip.hotplug b/net/banip/files/banip.hotplug
index f021fcff0..7807e7c46 100644
--- a/net/banip/files/banip.hotplug
+++ b/net/banip/files/banip.hotplug
@@ -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}" ]
diff --git a/net/banip/files/banip.sh b/net/banip/files/banip.sh
index 743ea4d74..51345138f 100755
--- a/net/banip/files/banip.sh
+++ b/net/banip/files/banip.sh
@@ -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"