contrib/package: rename luci-kamikaze to luci, add initmgr to default collection
[project/luci.git] / applications / luci-hd_idle / luasrc / controller / hd_idle.lua
index 5dfbe16ea08ae388a03587060485929148cef300..9d5e5b3b30b4c542c52157579ed003c685d84953 100644 (file)
@@ -18,11 +18,11 @@ module("luci.controller.hd_idle", package.seeall)
 function index()
        require("luci.i18n")
        luci.i18n.loadc("hd_idle")
-       if not luci.fs.access("/etc/config/hd-idle") then
+       if not nixio.fs.access("/etc/config/hd-idle") then
                return
        end
 
-       local page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), luci.i18n.translate("hd_idle", "hd-idle"), 60)
+       local page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), luci.i18n.translate("hd-idle"), 60)
        page.i18n = "hd_idle"
        page.dependent = true
 end