banip: release 0.0.7 7784/head
authorDirk Brenken <dev@brenken.org>
Wed, 26 Dec 2018 20:52:26 +0000 (21:52 +0100)
committerDirk Brenken <dev@brenken.org>
Wed, 26 Dec 2018 20:52:26 +0000 (21:52 +0100)
* determine L3 and L2 network devices to support pppoe interfaces
correctly

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

index 2e50b0244d7341ce84cf176be974c0efb0a61e64..519f91091f7ba6ed43a296c5147f79f6d80567b3 100644 (file)
@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=banip
-PKG_VERSION:=0.0.6
+PKG_VERSION:=0.0.7
 PKG_RELEASE:=1
 PKG_LICENSE:=GPL-3.0+
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
index 20e15c938a1850239d61388a198d661e732d5268..963439441e093dcf49b555332fc9235bcde7967e 100755 (executable)
@@ -10,7 +10,7 @@
 #
 LC_ALL=C
 PATH="/usr/sbin:/usr/bin:/sbin:/bin"
-ban_ver="0.0.6"
+ban_ver="0.0.7"
 ban_sysver="unknown"
 ban_enabled=0
 ban_automatic="1"
@@ -169,10 +169,16 @@ f_envcheck()
 
        for iface in ${ban_iface}
        do
-               network_get_physdev tmp "${iface}"
+               network_get_device tmp "${iface}"
                if [ -n "${tmp}" ]
                then
                        ban_dev="${ban_dev} ${tmp}"
+               else
+                       network_get_physdev tmp "${iface}"
+                       if [ -n "${tmp}" ]
+                       then
+                               ban_dev="${ban_dev} ${tmp}"
+                       fi
                fi
                network_get_subnets tmp "${iface}"
                if [ -n "${tmp}" ]