diff options
author | Chris Blake <chrisrblake93@gmail.com> | 2016-09-20 07:14:29 -0500 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-09-27 17:50:22 +0200 |
commit | 68d649f5cd9ee2f6fda00df7bde4b9074474becf (patch) | |
tree | 8e5364f7fd24c938ca6046ea2d85aa1e24a52826 /target/linux/ar71xx/base-files/lib/preinit | |
parent | b1f39d3d7ee7ba0714e45af64a935b01877a5175 (diff) | |
download | upstream-68d649f5cd9ee2f6fda00df7bde4b9074474becf.tar.gz upstream-68d649f5cd9ee2f6fda00df7bde4b9074474becf.tar.bz2 upstream-68d649f5cd9ee2f6fda00df7bde4b9074474becf.zip |
ar71xx: add support for Cisco Meraki Z1 Cloud Managed Teleworker Gateway
This patch adds support for Cisco's Z1.
Detailed instructions for the flashing the device can
be found in the OpenWrt wiki:
<https://wiki.openwrt.org/toh/meraki/z1>
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files/lib/preinit')
-rw-r--r-- | target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx | 4 |
1 files changed, 4 insertions, 0 deletions
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 39da3090f8..60e278782f 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 @@ -49,6 +49,10 @@ preinit_set_mac_address() { wrt160nl) fetch_mac_from_mtd nvram lan_hwaddr wan_hwaddr ;; + z1) + mac_lan=$(mtd_get_mac_binary_ubi board-config 102) + [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan" + ;; esac } |