Skip to content
Snippets Groups Projects
Commit 19e0f795 authored by Dark4MD's avatar Dark4MD Committed by David Bauer
Browse files

ramips-mt7620: add support for TP-Link Archer C50 v1

parent 13f16ed7
No related branches found
No related tags found
No related merge requests found
...@@ -303,6 +303,7 @@ ramips-mt7620 ...@@ -303,6 +303,7 @@ ramips-mt7620
* TP-Link * TP-Link
- Archer C2 v1 - Archer C2 v1
- Archer C50 v1
* Xiaomi * Xiaomi
......
...@@ -61,7 +61,7 @@ elseif platform.match('mpc85xx', 'p1020', {'aerohive,hiveap-330'}) then ...@@ -61,7 +61,7 @@ elseif platform.match('mpc85xx', 'p1020', {'aerohive,hiveap-330'}) then
table.insert(try_files, 1, '/sys/class/net/eth0/address') table.insert(try_files, 1, '/sys/class/net/eth0/address')
elseif platform.match('mpc85xx', 'p1020', {'ocedo,panda'}) then elseif platform.match('mpc85xx', 'p1020', {'ocedo,panda'}) then
table.insert(try_files, 1, '/sys/class/net/eth1/address') table.insert(try_files, 1, '/sys/class/net/eth1/address')
elseif platform.match('ramips', 'mt7620', {'miwifi-mini', 'tplink,c2-v1'}) then elseif platform.match('ramips', 'mt7620', {'miwifi-mini', 'tplink,c2-v1', 'c50'}) then
table.insert(try_files, 1, '/sys/class/net/eth0/address') table.insert(try_files, 1, '/sys/class/net/eth0/address')
elseif platform.match('ramips', 'mt7621', {'dir-860l-b1'}) then elseif platform.match('ramips', 'mt7621', {'dir-860l-b1'}) then
table.insert(try_files, 1, '/sys/class/ieee80211/phy1/macaddress') table.insert(try_files, 1, '/sys/class/ieee80211/phy1/macaddress')
......
...@@ -34,10 +34,19 @@ device('nexx-wt3020-8m', 'wt3020-8M', { ...@@ -34,10 +34,19 @@ device('nexx-wt3020-8m', 'wt3020-8M', {
-- TP-Link -- TP-Link
local tplink_region_suffix = ''
if (env.GLUON_REGION or '') ~= '' then
tplink_region_suffix = '-' .. env.GLUON_REGION
end
device('tp-link-archer-c2-v1', 'tplink_c2-v1', { device('tp-link-archer-c2-v1', 'tplink_c2-v1', {
factory = false, factory = false,
}) })
device('tp-link-archer-c50', 'ArcherC50v1', {
factory = '-squashfs-factory' .. tplink_region_suffix,
})
-- Xiaomi -- Xiaomi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment