[openwrt/openwrt] mediatek: fix failsafe ethernet for NWA50AX Pro

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 11 05:45:26 PST 2024


blocktrron pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/c90901f0880ae08fc71d3f68ed16238a0aeaaffe

commit c90901f0880ae08fc71d3f68ed16238a0aeaaffe
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Sun Feb 11 14:44:08 2024 +0100

    mediatek: fix failsafe ethernet for NWA50AX Pro
    
    The NWA50AX Pro only has a eth0 interface for its only ethernet port.
    Use this port for preinit.
    
    Fixes non-working network in failsafe mode.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
    (cherry picked from commit b589434a0b38435bd1ce3a9be3af75ed188e88e0)
---
 target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 5e7fc81ad8..fd39b3f65f 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
@@ -4,7 +4,8 @@ set_preinit_iface() {
 		ip link set eth1 up
 		ifname=eth1
 		;;
-	ubnt,unifi-6-lr)
+	ubnt,unifi-6-lr|\
+	zyxel,nwa50ax-pro)
 		ip link set eth0 up
 		ifname=eth0
 		;;




More information about the lede-commits mailing list