[openwrt/openwrt] mediatek: filogic: fix failsafe mode on devices with no lan1
LEDE Commits
lede-commits at lists.infradead.org
Thu May 23 12:59:21 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/c82c1178c1577422b62c90a52fa412929696d491
commit c82c1178c1577422b62c90a52fa412929696d491
Author: Paul Geraedts <p.f.j.geraedts at gmail.com>
AuthorDate: Sat Feb 24 09:01:01 2024 +0100
mediatek: filogic: fix failsafe mode on devices with no lan1
Default to lan4 port, instead of (missing) lan1 port,
to fix failsafe mode on Xiaomi AX3000T, WR30U, AX6000
Build system: x86/64
Build-tested: mediatek/filogic/xiaomi_mi-router-ax3000t-ubootmod
Run-tested: mediatek/filogic/xiaomi_mi-router-ax3000t-ubootmod
Signed-off-by: Paul Geraedts <p.f.j.geraedts at gmail.com>
(cherry picked from commit 8256d06933e7542ecdd427b6a0ef4e87bb37d3f4)
---
.../linux/mediatek/base-files/lib/preinit/05_set_preinit_iface | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface b/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface
index d45f20fe62..8cab27a232 100644
--- a/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface
+++ b/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface
@@ -10,6 +10,15 @@ set_preinit_iface() {
ip link set eth0 up
ifname=eth0
;;
+ xiaomi,mi-router-ax3000t|\
+ xiaomi,mi-router-ax3000t-ubootmod|\
+ xiaomi,mi-router-wr30u-stock|\
+ xiaomi,mi-router-wr30u-ubootmod|\
+ xiaomi,redmi-router-ax6000-stock|\
+ xiaomi,redmi-router-ax6000-ubootmod)
+ ip link set eth0 up
+ ifname=lan4
+ ;;
*)
ip link set eth0 up
ifname=lan1
More information about the lede-commits
mailing list