summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-05 14:15:03 +0000
committerSteven Barth <steven@midlink.org>2008-08-05 14:15:03 +0000
commit0181d2dee7652e710d8a0ac5048406b61f827483 (patch)
tree18e6bf7ce134eed5ad592df0db42a31788632dd1
parent565bcfab825a12adca9ed38bf3bb445d93c07aec (diff)
modules/admin-full: Display wifi devices as enabled if user removes the disabled-option
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua b/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua
index b4e0e2915b..d463157d19 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua
@@ -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")