From 98f1d09a06dd917fa8576f3e677af17ccf736c85 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 15 Nov 2009 19:02:34 +0000 Subject: AP configuration --- modules/niu/luasrc/controller/niu/wireless.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/niu/luasrc/controller') 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 -- cgit v1.2.3