ar71xx: add support for 8devices Rambutan development board
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / preinit / 05_set_iface_mac_ar71xx
index 50f59defe10782864829db3e509180e8fcce2168..277287d3835accedb36d6598fd29cd9f9d1f894b 100644 (file)
@@ -44,6 +44,12 @@ preinit_set_mac_address() {
                        mac_wan=$(mtd_get_mac_binary caldata 6)
                        [ -n "$mac_wan" ] && ifconfig eth0 hw ether "$mac_wan"
                        ;;
+               rambutan)
+                       mac_lan=$(mtd_get_mac_binary art 0)
+                       [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
+                       mac_wan=$(mtd_get_mac_binary art 6)
+                       [ -n "$mac_wan" ] && ifconfig eth1 hw ether "$mac_wan"
+                       ;;
                tew-632brp)
                        fetch_mac_from_mtd config lan_mac wan_mac
                        ;;