diff options
author | Steven Barth <steven@midlink.org> | 2009-11-14 19:24:12 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-11-14 19:24:12 +0000 |
commit | 2bfa17e6f415a5d99a2f65dc37e4b8ceac1c3b6a (patch) | |
tree | 2cbaeb8d3612276695a60b32d661f2018af7117d /modules/niu/luasrc/controller | |
parent | 319f820388d2a6e634053b7e11104e8755d4d498 (diff) |
NIU:
Initial wireless
DDNS: Show current address only if domain name is saved
Minor tweaks
Diffstat (limited to 'modules/niu/luasrc/controller')
-rw-r--r-- | modules/niu/luasrc/controller/niu/system.lua | 2 | ||||
-rw-r--r-- | modules/niu/luasrc/controller/niu/wireless.lua | 28 |
2 files changed, 29 insertions, 1 deletions
diff --git a/modules/niu/luasrc/controller/niu/system.lua b/modules/niu/luasrc/controller/niu/system.lua index 2adf1d7623..e9e767a1de 100644 --- a/modules/niu/luasrc/controller/niu/system.lua +++ b/modules/niu/luasrc/controller/niu/system.lua @@ -18,7 +18,7 @@ module "luci.controller.niu.system" function index() local toniu = {on_success_to={"niu"}} - local e = entry({"niu", "system"}, alias("niu"), "System", 20) + local e = entry({"niu", "system"}, alias("niu"), "System", 30) e.niu_dbtemplate = "niu/system" e.niu_dbtasks = true e.niu_dbicon = "icons32/preferences-system.png" diff --git a/modules/niu/luasrc/controller/niu/wireless.lua b/modules/niu/luasrc/controller/niu/wireless.lua new file mode 100644 index 0000000000..f508abad55 --- /dev/null +++ b/modules/niu/luasrc/controller/niu/wireless.lua @@ -0,0 +1,28 @@ +--[[ +LuCI - Lua Development Framework + +Copyright 2009 Steven Barth <steven@midlink.org> + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ +]]-- + +local require = require +module "luci.controller.niu.wireless" + +function index() + local toniu = {on_success_to={"niu"}} + + local e = entry({"niu", "wireless"}, alias("niu"), "Wireless", 20) + --e.niu_dbtemplate = "niu/wireless" + e.niu_dbtasks = true + e.niu_dbicon = "icons32/network-wireless.png" + + entry({"niu", "wireless", "ap"}, + cbi("niu/network/ap", toniu), "Configure Private Access Point", 1) +end
\ No newline at end of file |