Use luci.fs.access instead of luci.fs.isfile where applicable
[project/luci.git] / applications / luci-olsr / luasrc / controller / olsr.lua
index 766107e..652f6b9 100644 (file)
@@ -1,7 +1,7 @@
 module("luci.controller.olsr", package.seeall)
 
 function index()
-       if not luci.fs.isfile("/etc/config/olsrd") then
+       if not luci.fs.access("/etc/config/olsrd") then
                return
        end