Skip to content

Commit

Permalink
Merge pull request freifunk-gluon#3312 from grische/fix/ports-on-7520-v2
Browse files Browse the repository at this point in the history
fritzbox-7530/7520: utilize lan1 as wan, others as lan
  • Loading branch information
rotanid authored Jul 28, 2024
2 parents 6f6c300 + 27fe1ed commit 23ff99b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ elseif platform.match('ath79', 'generic', {
'ubnt,unifiac-pro',
}) then
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', {
'netgear,wac104',
}) then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ if uci:get('gluon', 'iface_wan') then
end
if uci:get('gluon', 'iface_single') then
roles.wan = uci:get_list('gluon', 'iface_single', 'role')
roles.lan = uci:get_list('gluon', 'iface_single', 'role')
end

-- Non-existing interfaces are nil, so they will not be added to the table
Expand Down

0 comments on commit 23ff99b

Please sign in to comment.