add support for splash leases plugin
[project/luci.git] / applications / luci-statistics / root / usr / bin / stat-genconfig
index 97c3628..86773b4 100755 (executable)
@@ -192,7 +192,6 @@ function _list_expand( c, l, nopad )
                                k = n:gsub("(%w+)s", "%1")
                        end
 
-                       
                        str = str .. _expand( c[n], k, nopad )
                end
        end
@@ -201,15 +200,19 @@ function _list_expand( c, l, nopad )
 end
 
 function _expand( s, n, nopad )
-       if type(s) == "string" then
-               local str = ""
+       local str = ""
 
+       if type(s) == "string" then
                for i, v in ipairs( luci.util.split( s, "%s+", nil, true ) ) do
                        str = str .. _string( v, n, nopad )
                end
-
-               return str
+       elseif type(s) == "table" then
+               for i, v in ipairs(s) do
+                       str = str .. _string( v, n, nopad )
+               end
        end
+
+       return str
 end
 
 function _bool( s, n, nopad )
@@ -316,6 +319,12 @@ plugins = {
                { "Irqs" }
        },
 
+       iwinfo = {
+               { },
+               { "IgnoreSelected" },
+               { "Interfaces" }
+       },
+
        load    = {
                { },
                { },
@@ -334,7 +343,11 @@ plugins = {
                { "Interfaces", "WatchAdds" }
        },
 
-       memory = { },
+       memory = { 
+               { },
+               { },
+               { }
+       },
 
        netlink = {
                { },
@@ -344,6 +357,12 @@ plugins = {
 
        network = config_network,
 
+       nut = {
+               { "UPS" },
+               { },
+               { }
+       },
+
        olsrd = {
                { "Host", "Port", "CollectLinks","CollectRoutes","CollectTopology"},
                { },
@@ -368,6 +387,12 @@ plugins = {
                { "RRATimespans" }
        },
 
+        splash_leases = {
+          { },
+          { },
+          { }
+        },
+
        tcpconns = {
                { },
                { "ListeningPorts" },
@@ -380,6 +405,12 @@ plugins = {
                { }
        },
 
+       uptime = {
+               { },
+               { },
+               { }
+       },
+
        wireless = {
                { },
                { },