f508abad5525df99eaa0f0fbd4c91319a327d492
[project/luci.git] / modules / niu / luasrc / controller / niu / wireless.lua
1 --[[
2 LuCI - Lua Development Framework
3
4 Copyright 2009 Steven Barth <steven@midlink.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14
15 local require = require
16 module "luci.controller.niu.wireless"
17
18 function index()
19         local toniu = {on_success_to={"niu"}}
20         
21         local e = entry({"niu", "wireless"}, alias("niu"), "Wireless", 20)
22         --e.niu_dbtemplate = "niu/wireless"
23         e.niu_dbtasks = true
24         e.niu_dbicon = "icons32/network-wireless.png"
25
26         entry({"niu", "wireless", "ap"}, 
27         cbi("niu/network/ap", toniu), "Configure Private Access Point", 1)
28 end