summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/root/usr/bin
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-11-28 03:58:02 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-11-28 03:58:02 +0000
commitb96367228f89312a3de8d8845444dde40577ccbd (patch)
tree61e9933972feb23e82046a6a51225e710f9be80b /applications/luci-statistics/root/usr/bin
parentb2774f0cc64c3aec4328fe5869f410164a94cb89 (diff)
applications/luci-statistics: add support for olsr and madwifi plugin parameters
Diffstat (limited to 'applications/luci-statistics/root/usr/bin')
-rwxr-xr-xapplications/luci-statistics/root/usr/bin/stat-genconfig16
1 files changed, 14 insertions, 2 deletions
diff --git a/applications/luci-statistics/root/usr/bin/stat-genconfig b/applications/luci-statistics/root/usr/bin/stat-genconfig
index 4c396ff057..2b312cccfd 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" },
{ },