From 6bc9c000e840de5099099ebce0fbf611ea8db7d7 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 27 Jun 2009 14:35:21 +0000 Subject: applications/luci-statistics: add workaround for nixio io bug during config creation --- applications/luci-statistics/root/usr/bin/stat-genconfig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'applications/luci-statistics/root/usr') 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"] -- cgit v1.2.3