ipq40xx: add support for Compex WPJ428
[openwrt/.git] / target / linux / ipq40xx / base-files / etc / board.d / 02_network
index 37f81a398a48d6a54dfb9d6491070b39c6f9ca22..a53e2860add02fa3144f57966774be3318f1880e 100755 (executable)
@@ -12,15 +12,36 @@ board_config_update
 board=$(board_name)
 
 case "$board" in
+asus,rt-ac58u)
+       CI_UBIPART=UBI_DEV
+       wan_mac_addr=$(mtd_get_mac_binary_ubi Factory 20486)
+       lan_mac_addr=$(mtd_get_mac_binary_ubi Factory 4102)
+       ucidef_set_interfaces_lan_wan "eth0" "eth1"
+       ucidef_add_switch "switch0" \
+               "0u@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
+       ucidef_set_interface_macaddr "lan" "$lan_mac_addr"
+       ucidef_set_interface_macaddr "wan" "$wan_mac_addr"
+       ;;
 avm,fritzbox-4040)
        ucidef_set_interfaces_lan_wan "eth0" "eth1"
        ucidef_add_switch "switch0" \
                "0u@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
        ;;
-glinet,gl-b1300 |\
+compex,wpj428)
+       ucidef_set_interface_lan "eth0 eth1"
+       ;;
+glinet,gl-b1300)
+       ucidef_set_interfaces_lan_wan "eth0" "eth1"
+       ucidef_add_switch "switch0" \
+               "0u@eth0" "3:lan" "4:lan"
+       ;;
 openmesh,a42)
        ucidef_set_interfaces_lan_wan "eth1" "eth0"
        ;;
+
+meraki,mr33)
+       ucidef_set_interface_lan "eth0"
+       ;;
 *)
        echo "Unsupported hardware. Network interfaces not intialized"
        ;;