]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mpc85xx: fix failsafe iface selection for mpc85xx boards 21516/head
authorPawel Dembicki <paweldembicki@gmail.com>
Mon, 12 Jan 2026 14:44:05 +0000 (15:44 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 13 Jan 2026 23:26:31 +0000 (00:26 +0100)
Some mpc85xx boards still boot with failsafe configured on a non-LAN
interface. Align the preinit interface with the first DSA port or the
interface that LAN is connected to.

This makes failsafe reachable on devices where the default selection does
not map to the primary LAN port.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21516
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx

index d6f08534387859acd047b271a0a8170b4d369cda..7934a5bfc2d83923c9bb8cb8a155a177599dbc6e 100644 (file)
@@ -4,6 +4,17 @@
 
 mpc85xx_set_preinit_iface() {
        case $(board_name) in
+       aerohive,br200-wp|\
+       ocedo,panda|\
+       tplink,tl-wdr4900-v1)
+               ifname=lan1
+               ;;
+       aerohive,hiveap-330|\
+       enterasys,ws-ap3715i|\
+       watchguard,firebox-t10|\
+       watchguard,firebox-t15)
+               ifname=eth1
+               ;;
        watchguard,xtm330)
                ifname=port1
                ;;