Skip to content

Instantly share code, notes, and snippets.

@tcatm
Created July 25, 2015 15:11
Show Gist options
  • Save tcatm/35fd5131c6fcb07fda88 to your computer and use it in GitHub Desktop.
Save tcatm/35fd5131c6fcb07fda88 to your computer and use it in GitHub Desktop.
local disabled = false
if uci:get('wireless', ibss) then
disabled = uci:get_bool('wireless', ibss, "disabled")
elseif config.ibss.disabled then
disabled = true
end
local disabled = config.ibss.disabled
if uci:get('wireless', ibss) then
disabled = uci:get_bool('wireless', ibss, "disabled")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment