Skip to content
Snippets Groups Projects
Commit a0ff929b authored by Tom Herbers's avatar Tom Herbers Committed by David Bauer
Browse files

gluon-core: fix swconfig detection in ethernet module (#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 d9cfa194)
parent bdee1140
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment