From d9b28ec7a43e8b8f73196bc235bb6436e653eb6a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 27 Jun 2009 14:36:04 +0000 Subject: [PATCH] luci-0.9: merge r4930 --- applications/luci-statistics/ipkg/postinst | 2 ++ applications/luci-statistics/root/usr/bin/stat-genconfig | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/applications/luci-statistics/ipkg/postinst b/applications/luci-statistics/ipkg/postinst index 8d52ec2d3..7e81b3667 100755 --- a/applications/luci-statistics/ipkg/postinst +++ b/applications/luci-statistics/ipkg/postinst @@ -4,4 +4,6 @@ /etc/init.d/luci_statistics enabled || /etc/init.d/luci_statistics enable /etc/init.d/collectd enabled || /etc/init.d/collectd enable + + exit 0 } 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"] -- 2.25.1