Skip to content

Commit

Permalink
gluon-core: fix swconfig detection in ethernet module
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 7, 2024
1 parent 7df8c62 commit 4c34bec
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 4c34bec

Please sign in to comment.