Skip to content

Commit

Permalink
gluon-core: fix swconfig detection in ethernet module (freifunk-gluon…
Browse files Browse the repository at this point in the history
…#3309)

Switch config for swconfig can be found in the network,
not the system config.

This resulted in `Switch type: none` beeing reported for swconfig devices.

(cherry picked from commit d9cfa19)
  • Loading branch information
herbetom authored and blocktrron committed Jul 11, 2024
1 parent bdee114 commit a0ff929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/gluon-core/luasrc/usr/lib/lua/gluon/ethernet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ end
local function is_swconfig()
local has = false

uci:foreach("system", "switch", function()
uci:foreach("network", "switch", function()
has = true
end)

uci:foreach("system", "switch_vlan", function()
uci:foreach("network", "switch_vlan", function()
has = true
end)

Expand Down

0 comments on commit a0ff929

Please sign in to comment.