projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cee38c1
)
modules/base: provide disable state in luci.tools.status.wifi_network()
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 3 Oct 2014 17:28:21 +0000
(17:28 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 3 Oct 2014 17:28:21 +0000
(17:28 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/base/luasrc/tools/status.lua
patch
|
blob
|
history
diff --git
a/modules/base/luasrc/tools/status.lua
b/modules/base/luasrc/tools/status.lua
index 27bc925bd290003a343cedd8477b3085b5b69a9b..0efc51be23a5145f5586074f1ce4fbf6ef214421 100644
(file)
--- a/
modules/base/luasrc/tools/status.lua
+++ b/
modules/base/luasrc/tools/status.lua
@@
-166,6
+166,8
@@
function wifi_network(id)
country = net:country(),
txpower = net:txpower(),
txpoweroff = net:txpower_offset(),
+ disabled = (dev:get("disabled") == "1" or
+ net:get("disabled") == "1"),
device = {
up = dev:is_up(),
device = dev:name(),