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:6cf03bab37
("treewide: replace normal uses of luci.model.uci with simple-uci to reduce LuCI dependencies") (cherry picked from commit3c2593b684
)
This commit is contained in:
parent
69badbc253
commit
3cd3bf0f86
@ -84,7 +84,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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user