Use luci.fs.access instead of luci.fs.isfile where applicable
[project/luci.git] / applications / luci-upnp / luasrc / controller / upnp.lua
index a7fd66f..c88abdd 100644 (file)
@@ -15,7 +15,7 @@ $Id$
 module("luci.controller.upnp", package.seeall)
 
 function index()
-       if not luci.fs.isfile("/etc/config/upnpd") then
+       if not luci.fs.access("/etc/config/upnpd") then
                return
        end