applications/luci-statistics: add support for olsr and madwifi plugin parameters
This commit is contained in:
parent
b2774f0cc6
commit
b96367228f
1 changed files with 14 additions and 2 deletions
|
@ -233,8 +233,8 @@ function _string( s, n, nopad )
|
||||||
if not nopad then pad = "\t" end
|
if not nopad then pad = "\t" end
|
||||||
|
|
||||||
if s then
|
if s then
|
||||||
if s:find("[^%d]") then
|
if s:find("[^%d]") or n == "Port" then
|
||||||
if not s:find("[^%w]") then
|
if not s:find("[^%w]") and n ~= "Port" then
|
||||||
str = pad .. n .. " " .. luci.util.trim(s)
|
str = pad .. n .. " " .. luci.util.trim(s)
|
||||||
else
|
else
|
||||||
str = pad .. n .. ' "' .. luci.util.trim(s) .. '"'
|
str = pad .. n .. ' "' .. luci.util.trim(s) .. '"'
|
||||||
|
@ -321,6 +321,12 @@ plugins = {
|
||||||
{ }
|
{ }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
madwifi = {
|
||||||
|
{ "WatchSet" },
|
||||||
|
{ },
|
||||||
|
{ "Interfaces", "WatchAdds" }
|
||||||
|
},
|
||||||
|
|
||||||
netlink = {
|
netlink = {
|
||||||
{ },
|
{ },
|
||||||
{ "IgnoreSelected" },
|
{ "IgnoreSelected" },
|
||||||
|
@ -329,6 +335,12 @@ plugins = {
|
||||||
|
|
||||||
network = config_network,
|
network = config_network,
|
||||||
|
|
||||||
|
olsrd = {
|
||||||
|
{ "Host", "Port", "CollectLinks","CollectRoutes","CollectTopology"},
|
||||||
|
{ },
|
||||||
|
{ }
|
||||||
|
},
|
||||||
|
|
||||||
ping = {
|
ping = {
|
||||||
{ "TTL", "Interval" },
|
{ "TTL", "Interval" },
|
||||||
{ },
|
{ },
|
||||||
|
|
Loading…
Reference in a new issue