ramips:Add support for Aigale Ai-BR100
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 52e27c532150ba8ccf2d8388a661db1186b617ab..80b5449e054d15a4d434f4955fd19c6e9802aebf 100755 (executable)
@@ -110,21 +110,28 @@ ramips_setup_interfaces()
                ;;
 
        3g-6200n | \
+       ai-br100 | \
        dir-610-a1 | \
        dir-300-b7 | \
        dir-320-b1 | \
        dir-615-h1 | \
        hlk-rm04 | \
+       mt7621 | \
+       mt7628 | \
        mzk-w300nh2 | \
        mzk-750dhp | \
        whr-300hp2 | \
        whr-600d | \
-       wt1520)
+       wsr-600 | \
+       wsr-1166 | \
+       wt1520 | \
+       y1)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" "1" "1"
                ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6t"
                ucidef_add_switch_vlan "switch0" "2" "4 6t"
                ;;
+
        whr-1166d)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" "1" "1"
@@ -207,7 +214,6 @@ ramips_setup_interfaces()
                ucidef_add_switch_vlan "switch0" "2" "4 6t"
                ;;
 
-       y1 |\
        y1s)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" "1" "1"
@@ -221,6 +227,7 @@ ramips_setup_interfaces()
                ucidef_set_interface_lan "eth0"
                ;;
 
+       e1700 | \
        mt7620a_mt7530)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch1" "1" "1"
@@ -302,6 +309,10 @@ ramips_setup_macs()
                wan_mac=$(mtd_get_mac_ascii nvram wanmac)
                ;;
 
+       e1700)
+               wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
+               ;;
+
        wcr-150gn)
                 wan_mac=$(mtd_get_mac_binary factory 40)
                ;;