modules/admin-full: Display wifi devices as enabled if user removes the disabled-option

This commit is contained in:
Steven Barth 2008-08-05 14:15:03 +00:00
parent 565bcfab82
commit 0181d2dee7

View file

@ -21,6 +21,10 @@ en = s:option(Flag, "disabled", translate("enable"))
en.enabled = "0"
en.disabled = "1"
function en.cfgvalue(self, section)
return Flag.cfgvalue(self, section) or "0"
end
t = s:option(ListValue, "type", translate("type"))
t:value("broadcom")
t:value("atheros")