luci-mod-admin-full: switch to nixio.fs
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_network / wifi_overview.htm
index 312fd08..63bb6dc 100644 (file)
@@ -14,7 +14,7 @@ You may obtain a copy of the License at
 <%-
 
        local sys = require "luci.sys"
-       local fs = require "luci.fs"
+       local fs = require "nixio.fs"
        local utl = require "luci.util"
        local uci = require "luci.model.uci".cursor()
        local ntm = require "luci.model.network"
@@ -86,7 +86,7 @@ You may obtain a copy of the License at
                        return translate("Hermes 802.11b Wireless Controller")
 
                -- hostap
-               elseif name == "wlan" and fs.isdirectory("/proc/net/hostap/" .. ifname) then
+               elseif name == "wlan" and fs.stat("/proc/net/hostap/" .. ifname, "type") == "dir" then
                        return translate("Prism2/2.5/3 802.11b Wireless Controller")
 
                -- dunno yet