ipq806x: add support for Compex WPQ864
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / etc / board.d / 02_network
index e279cdd..9d8af44 100755 (executable)
@@ -12,13 +12,7 @@ board_config_update
 board=$(board_name)
 
 case "$board" in
-linksys,ea8500)
-       hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
-       ucidef_add_switch "switch0" \
-               "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
-       ucidef_set_interface_macaddr "lan" "$hw_mac_addr"
-       ucidef_set_interface_macaddr "wan" "$hw_mac_addr"
-       ;;
+compex,wpq864 |\
 netgear,d7800 |\
 netgear,r7500 |\
 netgear,r7500v2 |\
@@ -28,6 +22,13 @@ tplink,vr2600v)
        ucidef_add_switch "switch0" \
                "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
        ;;
+linksys,ea8500)
+       hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
+       ucidef_add_switch "switch0" \
+               "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
+       ucidef_set_interface_macaddr "lan" "$hw_mac_addr"
+       ucidef_set_interface_macaddr "wan" "$hw_mac_addr"
+       ;;
 qcom,ipq8064-db149)
        ucidef_set_interface_lan "eth1 eth2 eth3"
        ucidef_add_switch "switch0" \