summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/root/usr
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-27 14:35:21 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-27 14:35:21 +0000
commit6bc9c000e840de5099099ebce0fbf611ea8db7d7 (patch)
tree346b21b34450ba79b75784ea644aea364542c76b /applications/luci-statistics/root/usr
parentc443a549be7b869ae2664028dc781a2ca24ff91f (diff)
applications/luci-statistics: add workaround for nixio io bug during config creation
Diffstat (limited to 'applications/luci-statistics/root/usr')
-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 e179cdb344..4272169c3a 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"]