Skip to content

Commit

Permalink
gluon-core: fix swconfig detection in ethernet module (#3309)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
herbetom committed Jul 10, 2024
1 parent 7df8c62 commit d9cfa19
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 d9cfa19

Please sign in to comment.