mirror of
https://github.com/openwrt/luci.git
synced 2026-08-31 17:01:56 +04:00
applications/luci-statistics: add workaround for nixio io bug during config creation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user