mediatek: add support for the GL.iNet GL-MT3000
[openwrt/openwrt.git] / target / linux / mediatek / base-files / lib / preinit / 05_set_preinit_iface
index 3ac856d1c45b6c2e5a2355f97dba61f6692dad91..5e7fc81ad8263d4400bd2c46bcb1eab635c32aa8 100644 (file)
@@ -1,11 +1,15 @@
 set_preinit_iface() {
-       ip link set eth0 up
-
        case $(board_name) in
+       glinet,gl-mt3000)
+               ip link set eth1 up
+               ifname=eth1
+               ;;
        ubnt,unifi-6-lr)
+               ip link set eth0 up
                ifname=eth0
                ;;
        *)
+               ip link set eth0 up
                ifname=lan1
                ;;
        esac