ramips: add support for EnGenius ESR600
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 7ab5653d09ecd2ef7c1019cd304b868ce041f706..7ecc11b37b53bf54a0d5e706db55217ce1e57cdf 100755 (executable)
@@ -333,6 +333,10 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch1" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
                ;;
+       engenius,esr600)
+               ucidef_add_switch "switch0" \
+                       "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan" "0@eth0"
+               ;;
        fon,fon2601)
                ucidef_add_switch "switch0" \
                        "0:lan" "4:wan" "6@eth0"
@@ -635,7 +639,8 @@ ramips_setup_macs()
        netgear,r6850)
                wan_mac=$(macaddr_add "$(cat /sys/class/net/eth0/address)" 2)
                ;;
-       edimax,rg21s)
+       edimax,rg21s|\
+       engenius,esr600)
                lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
                wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
                ;;