applications/luci-statistics: add support for olsr and madwifi plugin parameters
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 28 Nov 2011 03:58:02 +0000 (03:58 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 28 Nov 2011 03:58:02 +0000 (03:58 +0000)
applications/luci-statistics/root/usr/bin/stat-genconfig

index 4c396ff057c2f22f3f85535b59aa1100191fffd9..2b312cccfdbebb328c13d7caaa0ab07f9f24da18 100755 (executable)
@@ -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" },
                { },