Use luci.fs.access instead of luci.fs.isfile where applicable
[project/luci.git] / applications / luci-ntpc / luasrc / controller / ntpc.lua
index 8fa690f..9290644 100644 (file)
@@ -17,7 +17,7 @@ module("luci.controller.ntpc", package.seeall)
 function index()
        require("luci.i18n")
        luci.i18n.loadc("ntpc")
-       if not luci.fs.isfile("/etc/config/ntpclient") then
+       if not luci.fs.access("/etc/config/ntpclient") then
                return
        end