netmode: fix extender configuration

This commit is contained in:
Vivek Kumar Dutta 2025-05-19 17:43:01 +05:30
parent ac93499202
commit 22d9f90528
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
3 changed files with 3 additions and 7 deletions

View file

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=netmode
PKG_VERSION:=1.1.0
PKG_VERSION:=1.1.1
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_LICENSE:=GPL-2.0-only

View file

@ -108,14 +108,10 @@ l2_network_config() {
uci -q commit firewall
}
network_mode="$(uci -q get netmode.global.mode)"
if [ -z "${network_mode}" ]; then
network_mode="$(fw_printenv -n netmode 2>/dev/null)"
fi
network_mode="$(fw_printenv -n netmode 2>/dev/null)"
case "$network_mode" in
layer2|extender|bridged)
layer2|extender)
l2_network_config
l2_mcast_config
;;

View file