From: Jo-Philipp Wich Date: Mon, 28 Nov 2011 03:58:02 +0000 (+0000) Subject: applications/luci-statistics: add support for olsr and madwifi plugin parameters X-Git-Tag: 0.11.0~1321 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=b96367228f89312a3de8d8845444dde40577ccbd;ds=sidebyside applications/luci-statistics: add support for olsr and madwifi plugin parameters --- diff --git a/applications/luci-statistics/root/usr/bin/stat-genconfig b/applications/luci-statistics/root/usr/bin/stat-genconfig index 4c396ff05..2b312cccf 100755 --- a/applications/luci-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-statistics/root/usr/bin/stat-genconfig @@ -233,8 +233,8 @@ function _string( s, n, nopad ) if not nopad then pad = "\t" end if s then - if s:find("[^%d]") then - if not s:find("[^%w]") then + if s:find("[^%d]") or n == "Port" then + if not s:find("[^%w]") and n ~= "Port" then str = pad .. n .. " " .. luci.util.trim(s) else str = pad .. n .. ' "' .. luci.util.trim(s) .. '"' @@ -321,6 +321,12 @@ plugins = { { } }, + madwifi = { + { "WatchSet" }, + { }, + { "Interfaces", "WatchAdds" } + }, + netlink = { { }, { "IgnoreSelected" }, @@ -329,6 +335,12 @@ plugins = { network = config_network, + olsrd = { + { "Host", "Port", "CollectLinks","CollectRoutes","CollectTopology"}, + { }, + { } + }, + ping = { { "TTL", "Interval" }, { },