<%-
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"
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