From: David Bauer Date: Sun, 11 Feb 2024 13:44:08 +0000 (+0100) Subject: mediatek: fix failsafe ethernet for NWA50AX Pro X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b589434a0b38435bd1ce3a9be3af75ed188e88e0;p=openwrt%2Fstaging%2Fblocktrron.git 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 --- 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 9daf1ef26b..da9c4e7f40 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 @@ -9,7 +9,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 ;;