From abc84551c04783c2d59fdd4aa474d5a82ed30cf5 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 12 Dec 2015 06:42:29 +0000 Subject: ar71xx: add support for Cisco's MR18 This patch adds support for Cisco's MR18. Detailed instructions for the flashing the device can be found in the OpenWrt forum thread: Signed-off-by: Chris R Blake SVN-Revision: 47878 --- target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'target/linux/ar71xx/base-files/lib/preinit') diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx index 92b3765bb2..a9f4bf5244 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx +++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx @@ -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" -- cgit v1.2.3