applications/luci-statistics: add workaround for nixio io bug during config creation
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 27 Jun 2009 14:35:21 +0000 (14:35 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 27 Jun 2009 14:35:21 +0000 (14:35 +0000)
applications/luci-statistics/ipkg/postinst
applications/luci-statistics/root/usr/bin/stat-genconfig

index 8d52ec2..7e81b36 100755 (executable)
@@ -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
 }
index e179cdb..4272169 100755 (executable)
@@ -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"]