ipq40xx: add support for Netgear EX6100v2/EX6150v2
[openwrt/staging/chunkeey.git] / target / linux / ipq40xx / base-files / etc / board.d / 02_network
index 7c83e2e7546e10a994baa033342c488563522cf4..ade1b054583edc609cb408ba69706f56fcc8982e 100755 (executable)
@@ -12,11 +12,27 @@ board_config_update
 board=$(board_name)
 
 case "$board" in
+8dev,jalapeno)
+       ucidef_set_interfaces_lan_wan "eth0" "eth1"
+       ;;
+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"
        ;;
+compex,wpj428)
+       ucidef_set_interface_lan "eth0 eth1"
+       ;;
 glinet,gl-b1300)
        ucidef_set_interfaces_lan_wan "eth0" "eth1"
        ucidef_add_switch "switch0" \
@@ -25,6 +41,11 @@ glinet,gl-b1300)
 openmesh,a42)
        ucidef_set_interfaces_lan_wan "eth1" "eth0"
        ;;
+meraki,mr33 |\
+netgear,ex6100v2 |\
+netgear,ex6150v2)
+       ucidef_set_interface_lan "eth0"
+       ;;
 *)
        echo "Unsupported hardware. Network interfaces not intialized"
        ;;