Skip to content

Commit 6899e50

Browse files
ecsvneocturne
authored andcommitted
ar71xx-generic: Use eth0 as OpenMesh primary mac address
The OpenMesh devices have a sticker with the eth0 mac address on the bottom. Also all other mac addresses are calculated based on this address. Therefore, it is better to use this as primary mac address instead of the WiFi mac address. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
1 parent d75df24 commit 6899e50

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package/gluon-core/files/lib/gluon/upgrade/010-primary-mac

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ end
2424

2525
if platform.match('ar71xx', 'generic', {'tl-wdr3600', 'tl-wdr4300'}) then
2626
table.insert(try_files, 1, '/sys/class/ieee80211/phy1/macaddress')
27-
elseif platform.match('ar71xx', 'generic', {'unifi-outdoor-plus', 'carambola2'}) then
27+
elseif platform.match('ar71xx', 'generic', {'unifi-outdoor-plus', 'carambola2',
28+
'mr600', 'mr600v2',
29+
'mr900', 'mr900v2',
30+
'mr1750',
31+
'om2p', 'om2pv2',
32+
'om2p-hs', 'om2p-hsv2',
33+
'om2p-lc',
34+
'om5p', 'om5p-an',
35+
'om5p-ac', 'om5p-acv2'}) then
2836
table.insert(try_files, 1, '/sys/class/net/eth0/address')
2937
elseif platform.match('ar71xx', 'generic', {'archer-c5', 'archer-c7'}) then
3038
table.insert(try_files, 1, '/sys/class/net/eth1/address')

0 commit comments

Comments
 (0)