diff options
Diffstat (limited to 'modules/niu/luasrc/controller')
-rw-r--r-- | modules/niu/luasrc/controller/niu/wireless.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/niu/luasrc/controller/niu/wireless.lua b/modules/niu/luasrc/controller/niu/wireless.lua index f508abad55..4781426292 100644 --- a/modules/niu/luasrc/controller/niu/wireless.lua +++ b/modules/niu/luasrc/controller/niu/wireless.lua @@ -16,6 +16,11 @@ local require = require module "luci.controller.niu.wireless" function index() + if not fs.access("/etc/config/wireless") then + return + end + + local toniu = {on_success_to={"niu"}} local e = entry({"niu", "wireless"}, alias("niu"), "Wireless", 20) @@ -24,5 +29,5 @@ function index() e.niu_dbicon = "icons32/network-wireless.png" entry({"niu", "wireless", "ap"}, - cbi("niu/network/ap", toniu), "Configure Private Access Point", 1) + cbi("niu/wireless/ap", toniu), "Configure Private Access Point", 1) end
\ No newline at end of file |