k = n:gsub("(%w+)s", "%1")
end
-
str = str .. _expand( c[n], k, nopad )
end
end
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 )
{ "Irqs" }
},
+ iwinfo = {
+ { },
+ { "IgnoreSelected" },
+ { "Interfaces" }
+ },
+
load = {
{ },
{ },
{ "Interfaces", "WatchAdds" }
},
- memory = { },
+ memory = {
+ { },
+ { },
+ { }
+ },
netlink = {
{ },
network = config_network,
+ nut = {
+ { "UPS" },
+ { },
+ { }
+ },
+
olsrd = {
{ "Host", "Port", "CollectLinks","CollectRoutes","CollectTopology"},
{ },