Skip to content
Snippets Groups Projects
Unverified Commit 3c2593b6 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-core: fix handling of 'disabled' site.conf attributes for mesh interfaces

Because is_disabled() was always returning true or false, the
first_non_nil() would never actually check the default setting from
site.conf. This was broken since v2017.1.

Fixes: 6cf03bab ("treewide: replace normal uses of luci.model.uci with simple-uci to reduce LuCI dependencies")
parent b3edfd29
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ local function is_disabled(name) ...@@ -85,7 +85,7 @@ local function is_disabled(name)
if uci:get('wireless', name) then if uci:get('wireless', name) then
return uci:get_bool('wireless', name, 'disabled') return uci:get_bool('wireless', name, 'disabled')
else else
return false return nil
end end
end 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