mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-19 23:28:39 +02:00
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>
This commit is contained in:
parent
49b43b81e8
commit
0dee2a92de
|
@ -6,7 +6,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=banip
|
PKG_NAME:=banip
|
||||||
PKG_VERSION:=0.3.7
|
PKG_VERSION:=0.3.8
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
|
|
||||||
[ "${ACTION}" != "add" ] && exit 0
|
[ "${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_pidfile="/var/run/banip.pid"
|
||||||
ban_enabled="$(/etc/init.d/banip enabled; printf "%u" "${?}")"
|
ban_enabled="$(/etc/init.d/banip enabled; printf "%u" "${?}")"
|
||||||
if [ "${ban_enabled}" = "0" ] && [ ! -s "${ban_pidfile}" ]
|
if [ "${ban_enabled}" = "0" ] && [ ! -s "${ban_pidfile}" ]
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#
|
#
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
|
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
|
||||||
ban_ver="0.3.7"
|
ban_ver="0.3.8"
|
||||||
ban_basever=""
|
ban_basever=""
|
||||||
ban_enabled=0
|
ban_enabled=0
|
||||||
ban_automatic="1"
|
ban_automatic="1"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user