Skip to content

Commit

Permalink
gluon-core: fix handling of 'disabled' site.conf attributes for mesh …
Browse files Browse the repository at this point in the history
…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: 6cf03ba ("treewide: replace normal uses of luci.model.uci with simple-uci to reduce LuCI dependencies")
(cherry picked from commit 3c2593b)
  • Loading branch information
neocturne committed Jun 12, 2020
1 parent 69badbc commit 3cd3bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/gluon-core/luasrc/lib/gluon/upgrade/200-wireless
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ local function is_disabled(name)
if uci:get('wireless', name) then
return uci:get_bool('wireless', name, 'disabled')
else
return false
return nil
end
end

Expand Down

0 comments on commit 3cd3bf0

Please sign in to comment.