提交 55ed5c89 编写于 作者: S Steven Barth

Fix disabling of WiFi

closes #22
上级 cc4e2d49
......@@ -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"
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册