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@gmail.com>
(cherry picked from commit 8256d06933)
This commit is contained in:
committed by
Hauke Mehrtens
parent
a6bb1df40b
commit
c82c1178c1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user