mediatek: fix failsafe ethernet for NWA50AX Pro
authorDavid Bauer <mail@david-bauer.net>
Sun, 11 Feb 2024 13:44:08 +0000 (14:44 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 11 Feb 2024 13:44:10 +0000 (14:44 +0100)
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@david-bauer.net>
target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface

index 9daf1ef26b8d95c6921d736e126cb8f9e344d35d..da9c4e7f40d4477b4b9f6f57b2cc53e1bd0bd6c8 100644 (file)
@@ -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
                ;;