X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-statistics%2Froot%2Fusr%2Fbin%2Fstat-genconfig;h=171c1ae733fe9c0e6e41aac7f2cc9897bf284d5a;hp=97c3628abac905504da0465e46eb3c355e309112;hb=0a96f6de35b0a1c8fd75b62499d311c6f268b2bc;hpb=6acb5c2ab4093973d03657f9eea248c135f58cfc diff --git a/applications/luci-statistics/root/usr/bin/stat-genconfig b/applications/luci-statistics/root/usr/bin/stat-genconfig index 97c3628ab..171c1ae73 100755 --- a/applications/luci-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-statistics/root/usr/bin/stat-genconfig @@ -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 @@ -209,6 +208,13 @@ function _expand( s, n, nopad ) end return str + + elseif type(s) == "table" then + local str = "" + + for i, v in ipairs(s) do + str = str .. _string( v, n, nopad ) + end end end @@ -316,6 +322,12 @@ plugins = { { "Irqs" } }, + iwinfo = { + { }, + { "IgnoreSelected" }, + { "Interfaces" } + }, + load = { { }, { }, @@ -334,7 +346,11 @@ plugins = { { "Interfaces", "WatchAdds" } }, - memory = { }, + memory = { + { }, + { }, + { } + }, netlink = { { },