ramips: set correct LAN/WAN MAC addresses on DIR-860L B1
[openwrt/staging/mkresin.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index bf31c2af931d9b8fa104bdace84657ad8fe89466..6157d8776362a73100247f1c1b9c9df21e6d243c 100755 (executable)
@@ -50,6 +50,7 @@ ramips_setup_interfaces()
        mpr-a2|\
        ncs601w|\
        w150m|\
+       widora-neo|\
        wnce2001|\
        zte-q7)
                ucidef_add_switch "switch0"
@@ -112,6 +113,7 @@ ramips_setup_interfaces()
        atp-52b|\
        awm002-evb|\
        awm003-evb|\
+       c50|\
        dir-645|\
        dir-860l-b1|\
        f5d8235-v1|\
@@ -171,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" \
@@ -218,6 +224,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" \
@@ -279,6 +286,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)
                ;;