ar71xx: add support for Cisco's MR18
[openwrt.git] / target / linux / ar71xx / base-files / lib / preinit / 05_set_iface_mac_ar71xx
index 92b3765..a9f4bf5 100644 (file)
@@ -29,6 +29,10 @@ preinit_set_mac_address() {
                dir-615-i1)
                        fetch_mac_from_mtd nvram sys_lan_mac sys_wan_mac
                        ;;
+               mr18)
+                       mac_lan=$(mtd_get_mac_binary_ubi board-config 102)
+                       [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
+                       ;;
                r6100)
                        mac_lan=$(mtd_get_mac_binary caldata 0)
                        [ -n "$mac_lan" ] && ifconfig eth1 hw ether "$mac_lan"