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=86773b4e589b6f908b69e28a8e9fb3ed4407499b;hp=171c1ae733fe9c0e6e41aac7f2cc9897bf284d5a;hb=ccdc6535a9e1eefa109bc491a204e32281d13063;hpb=0a96f6de35b0a1c8fd75b62499d311c6f268b2bc diff --git a/applications/luci-statistics/root/usr/bin/stat-genconfig b/applications/luci-statistics/root/usr/bin/stat-genconfig index 171c1ae73..86773b4e5 100755 --- a/applications/luci-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-statistics/root/usr/bin/stat-genconfig @@ -200,22 +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 - local str = "" - for i, v in ipairs(s) do str = str .. _string( v, n, nopad ) end end + + return str end function _bool( s, n, nopad ) @@ -360,6 +357,12 @@ plugins = { network = config_network, + nut = { + { "UPS" }, + { }, + { } + }, + olsrd = { { "Host", "Port", "CollectLinks","CollectRoutes","CollectTopology"}, { }, @@ -384,6 +387,12 @@ plugins = { { "RRATimespans" } }, + splash_leases = { + { }, + { }, + { } + }, + tcpconns = { { }, { "ListeningPorts" }, @@ -396,6 +405,12 @@ plugins = { { } }, + uptime = { + { }, + { }, + { } + }, + wireless = { { }, { },