ramips: erx and erx-sfp: fix missing WAN interface
[openwrt/staging/chunkeey.git] / target / linux / ramips / mt7621 / base-files / etc / board.d / 02_network
index ba9f7fb7b61337f6890943b9c77686613c037d34..290069f4d3b8812790acb0bf7f33308f1a5d780c 100755 (executable)
@@ -44,10 +44,10 @@ ramips_setup_interfaces()
                ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan"
                ;;
        ubnt,edgerouter-x)
-               ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth4"
+               ucidef_set_interface_lan_wan "eth1 eth2 eth3 eth4" "eth0"
                ;;
        ubnt,edgerouter-x-sfp)
-               ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth4 eth5"
+               ucidef_set_interface_lan_wan "eth1 eth2 eth3 eth4 eth5" "eth0"
                ;;
        *)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"