From fbb59cfd608a124ca893cc58117b0f87f7b29d97 Mon Sep 17 00:00:00 2001 From: Dark4MD Date: Wed, 8 Jan 2020 00:31:19 +0100 Subject: [PATCH] ramips-mt7620: add support for TP-Link Archer C20i --- docs/user/supported_devices.rst | 1 + package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac | 2 +- targets/ramips-mt7620 | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index a6547799..c42824cd 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -303,6 +303,7 @@ ramips-mt7620 * TP-Link - Archer C2 v1 + - Archer C20i - Archer C50 v1 * Xiaomi diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac b/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac index 1f5c7a88..20ec1949 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac @@ -61,7 +61,7 @@ elseif platform.match('mpc85xx', 'p1020', {'aerohive,hiveap-330'}) then table.insert(try_files, 1, '/sys/class/net/eth0/address') elseif platform.match('mpc85xx', 'p1020', {'ocedo,panda'}) then table.insert(try_files, 1, '/sys/class/net/eth1/address') -elseif platform.match('ramips', 'mt7620', {'miwifi-mini', 'tplink,c2-v1', 'c50'}) then +elseif platform.match('ramips', 'mt7620', {'miwifi-mini', 'tplink,c2-v1', 'c20i', 'c50'}) then table.insert(try_files, 1, '/sys/class/net/eth0/address') elseif platform.match('ramips', 'mt7621', {'dir-860l-b1'}) then table.insert(try_files, 1, '/sys/class/ieee80211/phy1/macaddress') diff --git a/targets/ramips-mt7620 b/targets/ramips-mt7620 index 860193e5..74bf2e52 100644 --- a/targets/ramips-mt7620 +++ b/targets/ramips-mt7620 @@ -43,6 +43,8 @@ device('tp-link-archer-c2-v1', 'tplink_c2-v1', { factory = false, }) +device('tp-link-archer-c20i', 'ArcherC20i') + device('tp-link-archer-c50', 'ArcherC50v1', { factory = '-squashfs-factory' .. tplink_region_suffix, })