From 93cc8e543e6d1dd8d34eab8cdaeb91ce1c723505 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Tue, 10 Mar 2015 13:40:45 +0100
Subject: [PATCH] gluon-core: fix primary MAC address on TP-LINK Archer C5/C7

---
 package/gluon-core/files/lib/gluon/upgrade/010-primary-mac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/gluon-core/files/lib/gluon/upgrade/010-primary-mac b/package/gluon-core/files/lib/gluon/upgrade/010-primary-mac
index 7414941fd..12128efcb 100755
--- a/package/gluon-core/files/lib/gluon/upgrade/010-primary-mac
+++ b/package/gluon-core/files/lib/gluon/upgrade/010-primary-mac
@@ -23,6 +23,10 @@ if platform.match('ar71xx', 'generic', {'tl-wdr3600', 'tl-wdr4300'}) then
   table.insert(try_files, 1, '/sys/class/ieee80211/phy1/macaddress')
 end
 
+if platform.match('ar71xx', 'generic', {'archer-c5', 'archer-c7'}) then
+  table.insert(try_files, 1, '/sys/class/net/eth1/address')
+end
+
 
 for _, file in ipairs(try_files) do
   local addr = fs.readfile(file)
-- 
GitLab