applications/luci-statistics: switch controller to nixio.fs
This commit is contained in:
parent
c23a386eb7
commit
ba66381047
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ module("luci.controller.luci_statistics.luci_statistics", package.seeall)
|
||||||
|
|
||||||
function index()
|
function index()
|
||||||
|
|
||||||
require("luci.fs")
|
require("nixio.fs")
|
||||||
require("luci.util")
|
require("luci.util")
|
||||||
require("luci.i18n")
|
require("luci.i18n")
|
||||||
require("luci.statistics.datatree")
|
require("luci.statistics.datatree")
|
||||||
|
@ -32,7 +32,7 @@ function index()
|
||||||
-- override entry(): check for existance <plugin>.so where <plugin> is derived from the called path
|
-- override entry(): check for existance <plugin>.so where <plugin> is derived from the called path
|
||||||
function _entry( path, ... )
|
function _entry( path, ... )
|
||||||
local file = path[5] or path[4]
|
local file = path[5] or path[4]
|
||||||
if luci.fs.access( "/usr/lib/collectd/" .. file .. ".so" ) then
|
if nixio.fs.access( "/usr/lib/collectd/" .. file .. ".so" ) then
|
||||||
entry( path, ... )
|
entry( path, ... )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue