From 13f16ed73765fbaeeafd89d033647e018674298e Mon Sep 17 00:00:00 2001 From: Dark4MD Date: Mon, 6 Jan 2020 00:02:44 +0100 Subject: [PATCH] ramips-mt7620: add support for TP-Link Archer C2 v1 --- docs/user/supported_devices.rst | 4 ++++ .../gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac | 2 +- targets/ramips-mt7620 | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index b80f75d0..72691397 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -300,6 +300,10 @@ ramips-mt7620 - WT3020AD/F/H +* TP-Link + + - Archer C2 v1 + * Xiaomi - MiWiFi Mini 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 5520a81a..8fd6872f 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'}) then +elseif platform.match('ramips', 'mt7620', {'miwifi-mini', 'tplink,c2-v1'}) 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 7236657b..9872bdd8 100644 --- a/targets/ramips-mt7620 +++ b/targets/ramips-mt7620 @@ -32,6 +32,13 @@ device('nexx-wt3020-8m', 'wt3020-8M', { }) +-- TP-Link + +device('tp-link-archer-c2-v1', 'tplink_c2-v1', { + factory = false, +}) + + -- Xiaomi device('xiaomi-miwifi-mini', 'miwifi-mini', {