Fix disabling of WiFi

closes #22
This commit is contained in:
Steven Barth 2009-01-05 21:14:33 +00:00
parent ea361d9d2c
commit cd5a6fe9d3
2 changed files with 2 additions and 0 deletions

View file

@ -27,6 +27,7 @@ back.titleref = luci.dispatcher.build_url("admin", "network", "wireless")
en = s:option(Flag, "disabled", translate("enable"))
en.enabled = "0"
en.disabled = "1"
en.rmempty = false
function en.cfgvalue(self, section)
return Flag.cfgvalue(self, section) or "0"

View file

@ -131,6 +131,7 @@ s = m:section(NamedSection, wifidevs[1], "wifi-device", translate("devices"))
s.addremove = false
en = s:option(Flag, "disabled", translate("enable"))
en.rmempty = false
en.enabled = "0"
en.disabled = "1"