projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
applications/luci-statistics: add workaround for nixio io bug during config creation
[project/luci.git]
/
applications
/
luci-statistics
/
root
/
usr
/
bin
/
stat-genconfig
diff --git
a/applications/luci-statistics/root/usr/bin/stat-genconfig
b/applications/luci-statistics/root/usr/bin/stat-genconfig
index e179cdb344bf707d563156e7413d413a33371842..4272169c3add284a5806618c1e45640ab4516c3c 100755
(executable)
--- 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"]