bsbf-resources: update to GIT HEAD of 2026-05-11
authorChester A. Unal <redacted>
Mon, 11 May 2026 20:17:29 +0000 (21:17 +0100)
committerChester A. Unal <redacted>
Tue, 12 May 2026 07:01:35 +0000 (08:01 +0100)
Update bsbf-resources to the GIT HEAD of 2026-05-11.

- Do not add more than 8 WANs with files/etc/uci-defaults/99-bsbf-bonding.
- resources-client/bsbf_bonding.nft now destroys the bsbf_bonding table
before adding it. Therefore, no need to delete the table anymore. And use
the destroy command to successfully exit even when the table doesn't exist.

Signed-off-by: Chester A. Unal <redacted>
net/bsbf-resources/Makefile
net/bsbf-resources/files/etc/uci-defaults/99-bsbf-bonding
net/bsbf-resources/files/usr/sbin/bsbf-bonding

index 6cb0a6ed22b068e861d2e8216e9c700a402dc1ae..cb2cb4da6e3f27c0a920b9c5c1795d362f010660 100644 (file)
@@ -11,9 +11,9 @@ PKG_MAINTAINER:=Chester A. Unal <chester.a.unal@arinc9.com>
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/bondingshouldbefree/bsbf-resources.git
-PKG_SOURCE_DATE:=2026-05-06
-PKG_SOURCE_VERSION:=e80c165c77765f297aa47742de450c5dcb0f43d3
-PKG_MIRROR_HASH:=8518847ef901034548abc17317a37055c5894242b576ba64da519e4aa51b2494
+PKG_SOURCE_DATE:=2026-05-11
+PKG_SOURCE_VERSION:=d4bad00854218e3ac8490ad288da6db9baf6cf1a
+PKG_MIRROR_HASH:=0927c07f092375db09d1911bd516c466f3eff6a0aca4e78332dc1837e966c1a2
 
 include $(INCLUDE_DIR)/package.mk
 
index 6a41faa8dcc877950cc11bb65e343bb3561a368c..34653f0e35675a2d5a8af908f49a862c742473e3 100644 (file)
@@ -66,6 +66,9 @@ fi
 
 index=1
 for dev in $final_wan_interfaces; do
+       # Only metrics 1 to 8 must be allocated for WAN so do not add any more.
+       [ "$index" -gt 8 ] && break
+
        uci -q delete network.wan$index
        uci set network.wan$index=interface
        uci set network.wan$index.device="$dev"
index 225107e62d505096d3bd9e178fc7c3bb3a25fbd7..781ffd9f6dd2f5353fdad7fbb3b1ee72d0a2d047 100644 (file)
@@ -51,12 +51,11 @@ case "$1" in
        service xray restart 2>/dev/null
 
        # (Re-)add nftables rules.
-       nft delete table bsbf_bonding 2>/dev/null
        nft -f /usr/share/bsbf/bsbf_bonding.nft
        ;;
 --disable)
        # Delete nftables rules.
-       nft delete table bsbf_bonding 2>/dev/null
+       nft destroy table bsbf_bonding
 
        # Disable and stop init.d services.
        service bsbf-bonding-nft disable
@@ -76,7 +75,7 @@ case "$1" in
        apk del bsbf-bonding bsbf-client-web bsbf-mptcp bsbf-rate-limiting
 
        # Delete nftables rules.
-       nft delete table bsbf_bonding 2>/dev/null
+       nft destroy table bsbf_bonding
 
        # Restore xray.
        rm -f /etc/xray/config.json
git clone https://git.99rst.org/PROJECT