ath79: fix boardname of GL.iNet GL-AR150
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / board.d / 02_network
index 1d6cd4e..906ccd7 100755 (executable)
@@ -10,6 +10,7 @@ ath79_setup_interfaces()
 
        case "$board" in
        avm,fritz300e|\
+       devolo,dvl1750c|\
        ocedo,koala|\
        ocedo,raccoon|\
        pcs,cap324|\
@@ -58,6 +59,9 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:1" "3:lan:4" "4:lan:3" "5:lan:2" "2:wan"
                ;;
+       devolo,dvl1200e)
+               ucidef_set_interface_lan "eth0 eth1"
+               ;;
        dlink,dir-825-b1)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
@@ -73,6 +77,7 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
                ;;
+       elecom,wrc-1750ghbk2-i|\
        elecom,wrc-300ghbk2-i)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:4" "3:lan:3" "4:lan:2" "5:lan:1" "1:wan"
@@ -84,11 +89,19 @@ ath79_setup_interfaces()
        etactica,eg200)
                ucidef_set_interface_lan "eth0" "dhcp"
                ;;
-       glinet,ar150|\
        glinet,ar300m|\
+       glinet,gl-ar150|\
        glinet,gl-x750)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
+       glinet,ar750s)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan:2" "3:lan:1" "1:wan"
+               ;;
+       nec,wg800hp)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan" "3:lan" "4:lan" "1:wan"
+               ;;
        netgear,wndr3700|\
        netgear,wndr3700v2|\
        netgear,wndr3800)
@@ -135,6 +148,7 @@ ath79_setup_interfaces()
                        "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
                ;;
        tplink,archer-a7-v5|\
+       tplink,archer-c7-v5|\
        tplink,tl-wdr3600|\
        tplink,tl-wdr4300)
                ucidef_add_switch "switch0" \
@@ -149,6 +163,7 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan" "6@eth0"
                ;;
+       dlink,dir-859-a1|\
        tplink,tl-wr1043nd-v4)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
@@ -168,6 +183,13 @@ ath79_setup_interfaces()
                        "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
                ;;
        tplink,tl-wr740nd-v4|\
+       tplink,tl-wr841-v8|\
+       tplink,tl-wr842n-v1|\
+       tplink,tl-wr842n-v2)
+               ucidef_set_interface_wan "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3"
+               ;;
        tplink,tl-wr741nd-v4|\
        tplink,tl-wr841-v9|\
        tplink,tl-wr841-v11)
@@ -175,12 +197,6 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
                ;;
-       tplink,tl-wr842n-v1|\
-       tplink,tl-wr842n-v2)
-               ucidef_set_interface_wan "eth0"
-               ucidef_add_switch "switch0" \
-                       "0@eth1" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3"
-               ;;
        tplink,tl-wr941-v2)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
                ;;
@@ -225,6 +241,11 @@ ath79_setup_macs()
                lan_mac=$(mtd_get_mac_text "mac" 4)
                wan_mac=$(mtd_get_mac_text "mac" 24)
                ;;
+       dlink,dir-859-a1)
+               lan_mac=$(mtd_get_mac_ascii devdata "lanmac")
+               wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
+               ;;
+       elecom,wrc-1750ghbk2-i|\
        elecom,wrc-300ghbk2-i)
                wan_mac=$(macaddr_add "$(mtd_get_mac_binary ART 4098)" -2)
                ;;
@@ -238,6 +259,10 @@ ath79_setup_macs()
                lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
                wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
                ;;
+       nec,wg800hp)
+               lan_mac=$(mtd_get_mac_text board_data 640)
+               wan_mac=$(mtd_get_mac_text board_data 1152)
+               ;;
        netgear,wndr3700|\
        netgear,wndr3700v2|\
        netgear,wndr3800)