Merge branch 'openmesh-primary_mac' of https://github.com/ecsv/gluon

This commit is contained in:
Matthias Schiffer 2016-05-24 00:34:05 +02:00
commit 35690aeb58
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -24,7 +24,15 @@ end
if platform.match('ar71xx', 'generic', {'tl-wdr3600', 'tl-wdr4300'}) then if platform.match('ar71xx', 'generic', {'tl-wdr3600', 'tl-wdr4300'}) then
table.insert(try_files, 1, '/sys/class/ieee80211/phy1/macaddress') table.insert(try_files, 1, '/sys/class/ieee80211/phy1/macaddress')
elseif platform.match('ar71xx', 'generic', {'unifi-outdoor-plus', 'carambola2'}) then elseif platform.match('ar71xx', 'generic', {'unifi-outdoor-plus', 'carambola2',
'mr600', 'mr600v2',
'mr900', 'mr900v2',
'mr1750',
'om2p', 'om2pv2',
'om2p-hs', 'om2p-hsv2',
'om2p-lc',
'om5p', 'om5p-an',
'om5p-ac', 'om5p-acv2'}) then
table.insert(try_files, 1, '/sys/class/net/eth0/address') table.insert(try_files, 1, '/sys/class/net/eth0/address')
elseif platform.match('ar71xx', 'generic', {'archer-c5', 'archer-c7'}) then elseif platform.match('ar71xx', 'generic', {'archer-c5', 'archer-c7'}) then
table.insert(try_files, 1, '/sys/class/net/eth1/address') table.insert(try_files, 1, '/sys/class/net/eth1/address')