From ab2efef7f9ccf264c72dc638ac1a580dee0210fc Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sun, 3 Nov 2019 18:59:00 +0100 Subject: [PATCH] mpc85xx-p1020: add support for OCEDO Panda (#1847) --- docs/user/supported_devices.rst | 4 ++++ .../gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac | 2 ++ targets/mpc85xx-p1020 | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index 41b05241..2070292d 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -231,6 +231,10 @@ mpc85xx-p1020 - HiveAP 330 +* OCEDO + + - Panda + ramips-mt7620 [#80211s]_ ------------------------ 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 1e4b2e2f..5adc83ba 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac @@ -57,6 +57,8 @@ elseif platform.match('ipq806x', nil, {'netgear,r7800'}) then table.insert(try_files, 1, '/sys/class/net/eth1/address') 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 table.insert(try_files, 1, '/sys/class/net/eth0/address') elseif platform.match('ramips', 'mt7621', {'dir-860l-b1'}) then diff --git a/targets/mpc85xx-p1020 b/targets/mpc85xx-p1020 index 100c209b..c6fb7d16 100644 --- a/targets/mpc85xx-p1020 +++ b/targets/mpc85xx-p1020 @@ -3,3 +3,10 @@ device('aerohive-hiveap-330', 'hiveap-330', { factory = false, }) + +-- OCEDO + +device('ocedo-panda', 'panda', { + factory = false, +}) +