Use luci.fs.access instead of luci.fs.isfile where applicable
[project/luci.git] / applications / luci-initmgr / luasrc / controller / init.lua
index aecf6c1863e4328499cb84aca49dae4a697cb310..fbbc7270f9d5989fdab7b0b9c304f09fc7638457 100644 (file)
@@ -15,7 +15,7 @@ $Id$
 module("luci.controller.init", package.seeall)
 
 function index()
-       if not luci.fs.isfile("/etc/rc.common") then
+       if not luci.fs.access("/etc/rc.common") then
                return
        end