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:
59e95dd
)
applications/luci-vnstat: filter inactive interfaces in preferences
author
Jo-Philipp Wich
<redacted>
Thu, 22 Sep 2011 01:41:26 +0000
(
01:41
+0000)
committer
Jo-Philipp Wich
<redacted>
Thu, 22 Sep 2011 01:41:26 +0000
(
01:41
+0000)
applications/luci-vnstat/luasrc/model/cbi/vnstat.lua
patch
|
blob
|
history
diff --git
a/applications/luci-vnstat/luasrc/model/cbi/vnstat.lua
b/applications/luci-vnstat/luasrc/model/cbi/vnstat.lua
index 5c5e8f7aa21cac1ea085f05d6da139211d81e0a9..38b06ba9a7085d33c2dac0bbf8a41a71cdcac317 100644
(file)
--- a/
applications/luci-vnstat/luasrc/model/cbi/vnstat.lua
+++ b/
applications/luci-vnstat/luasrc/model/cbi/vnstat.lua
@@
-56,9
+56,11
@@
s.anonymous = true
s.addremove = false
mon_ifaces = s:option(Value, "interface", translate("Monitor selected interfaces"))
-mon_ifaces.template = "cbi/network_ifacelist"
-mon_ifaces.widget = "checkbox"
-mon_ifaces.cast = "table"
+mon_ifaces.template = "cbi/network_ifacelist"
+mon_ifaces.widget = "checkbox"
+mon_ifaces.cast = "table"
+mon_ifaces.noinactive = true
+mon_ifaces.nocreate = true
function mon_ifaces.write(self, section, val)
local i
git clone https://git.99rst.org/PROJECT