Skip to content
Snippets Groups Projects
Unverified Commit 23ff99be authored by Andreas Ziegler's avatar Andreas Ziegler Committed by GitHub
Browse files

Merge pull request #3312 from grische/fix/ports-on-7520-v2

fritzbox-7530/7520: utilize lan1 as wan, others as lan 
parents 6f6c300e 27fe1ed4
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,10 @@ elseif platform.match('ath79', 'generic', { ...@@ -63,6 +63,10 @@ elseif platform.match('ath79', 'generic', {
'ubnt,unifiac-pro', 'ubnt,unifiac-pro',
}) then }) then
lan_ifname, wan_ifname = 'eth0.2', 'eth0.1' lan_ifname, wan_ifname = 'eth0.2', 'eth0.1'
elseif platform.match('ipq40xx', 'generic', {
'avm,fritzbox-7530',
}) then
lan_ifname, wan_ifname = 'lan2 lan3 lan4', 'lan1'
elseif platform.match('ramips', 'mt7621', { elseif platform.match('ramips', 'mt7621', {
'netgear,wac104', 'netgear,wac104',
}) then }) then
......
...@@ -43,6 +43,7 @@ if uci:get('gluon', 'iface_wan') then ...@@ -43,6 +43,7 @@ if uci:get('gluon', 'iface_wan') then
end end
if uci:get('gluon', 'iface_single') then if uci:get('gluon', 'iface_single') then
roles.wan = uci:get_list('gluon', 'iface_single', 'role') roles.wan = uci:get_list('gluon', 'iface_single', 'role')
roles.lan = uci:get_list('gluon', 'iface_single', 'role')
end end
-- Non-existing interfaces are nil, so they will not be added to the table -- Non-existing interfaces are nil, so they will not be added to the table
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment