ramips: fix buffalo wmr-300 lan port
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 4728c75312ee75842dbda94b41553a7de52fd538..1e605d742b8077985d99926232f2655d261981fe 100755 (executable)
@@ -113,6 +113,7 @@ ramips_setup_interfaces()
        atp-52b|\
        awm002-evb|\
        awm003-evb|\
+       c50|\
        dir-645|\
        dir-860l-b1|\
        f5d8235-v1|\
@@ -172,6 +173,10 @@ ramips_setup_interfaces()
        wrh-300cr)
                ucidef_set_interface_lan "eth0"
                ;;
+       duzun-dm06)
+               ucidef_add_switch "switch0" \
+                       "1:lan" "0:wan" "6@eth0"
+               ;;
        e1700|\
        mt7620a_mt7530)
                ucidef_add_switch "switch1" \
@@ -184,10 +189,12 @@ ramips_setup_interfaces()
                ;;
        mlwg2|\
        wizard8800|\
-       wl-330n|\
-       wmr-300)
+       wl-330n)
                ucidef_set_interface_lan "eth0.1"
                ;;
+       wmr-300)
+               ucidef_set_interface_lan "eth0"
+               ;;
        mzk-dp150n|\
        vocore)
                ucidef_add_switch "switch0" \
@@ -219,6 +226,7 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "0:wan" "6@eth0"
                ;;
+       zbt-ape522ii|\
        zbt-we826|\
        zbt-wr8305rt)
                ucidef_add_switch "switch0" \
@@ -280,6 +288,10 @@ ramips_setup_macs()
                lan_mac=$(mtd_get_mac_ascii nvram lanmac)
                wan_mac=$(mtd_get_mac_ascii nvram wanmac)
                ;;
+       dir-860l-b1)
+               lan_mac=$(mtd_get_mac_ascii factory lanmac)
+               wan_mac=$(mtd_get_mac_ascii factory wanmac)
+               ;;
        e1700)
                wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
                ;;