summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/root/usr/bin/stat-genconfig
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-statistics/root/usr/bin/stat-genconfig')
-rwxr-xr-xapplications/luci-statistics/root/usr/bin/stat-genconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/applications/luci-statistics/root/usr/bin/stat-genconfig b/applications/luci-statistics/root/usr/bin/stat-genconfig
index e179cdb34..4272169c3 100755
--- a/applications/luci-statistics/root/usr/bin/stat-genconfig
+++ b/applications/luci-statistics/root/usr/bin/stat-genconfig
@@ -25,6 +25,11 @@ local uci = luci.model.uci.cursor()
local sections = uci:get_all( "luci_statistics" )
+function print(...)
+ nixio.stdout:write(...)
+ nixio.stdout:write("\n")
+end
+
function section( plugin )
local config = sections[ "collectd_" .. plugin ] or sections["collectd"]