luci-0.9: merge r4930
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 27 Jun 2009 14:36:04 +0000 (14:36 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 27 Jun 2009 14:36:04 +0000 (14:36 +0000)
applications/luci-statistics/ipkg/postinst
applications/luci-statistics/root/usr/bin/stat-genconfig

index 8d52ec2d36d5c0e823fbf67ac2cf0a027980ea9c..7e81b3667f304461b678921b39ad9fb758531992 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 e179cdb344bf707d563156e7413d413a33371842..4272169c3add284a5806618c1e45640ab4516c3c 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"]