git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
565bcfa
)
modules/admin-full: Display wifi devices as enabled if user removes the disabled...
author
Steven Barth
<redacted>
Tue, 5 Aug 2008 14:15:03 +0000
(14:15 +0000)
committer
Steven Barth
<redacted>
Tue, 5 Aug 2008 14:15:03 +0000
(14:15 +0000)
modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua
patch
|
blob
|
history
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 b4e0e2915b165c5c478d20e04a984deeccae6320..d463157d198ea01a690c049d9c020369e1c56bdf 100644
(file)
--- 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")
git clone https://git.99rst.org/PROJECT