summaryrefslogtreecommitdiffhomepage
path: root/modules/niu/luasrc/controller
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-11-15 19:02:34 +0000
committerSteven Barth <steven@midlink.org>2009-11-15 19:02:34 +0000
commit98f1d09a06dd917fa8576f3e677af17ccf736c85 (patch)
treee8c584696f480c246f109aaaf70cc8cd2313435f /modules/niu/luasrc/controller
parent70f77f481a04e53f071bea93a8b77ce104f236db (diff)
AP configuration
Diffstat (limited to 'modules/niu/luasrc/controller')
-rw-r--r--modules/niu/luasrc/controller/niu/wireless.lua7
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