summaryrefslogtreecommitdiffhomepage
path: root/modules/niu/luasrc/controller
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-10-31 17:27:07 +0000
committerSteven Barth <steven@midlink.org>2009-10-31 17:27:07 +0000
commitb2671410bf5468443d6eb49f525d6c3e3fd7e28f (patch)
treea30a7a6fa499bde367fe4696a786bf3f06a356fa /modules/niu/luasrc/controller
parentbd43ccc886b54dbfa3e6fc41d1a132d289884a87 (diff)
NIU: Fixes, System
Diffstat (limited to 'modules/niu/luasrc/controller')
-rw-r--r--modules/niu/luasrc/controller/niu/network.lua3
-rw-r--r--modules/niu/luasrc/controller/niu/system.lua23
2 files changed, 24 insertions, 2 deletions
diff --git a/modules/niu/luasrc/controller/niu/network.lua b/modules/niu/luasrc/controller/niu/network.lua
index 41da30a377..cafed25679 100644
--- a/modules/niu/luasrc/controller/niu/network.lua
+++ b/modules/niu/luasrc/controller/niu/network.lua
@@ -16,8 +16,7 @@ local req = require
module "luci.controller.niu.network"
function index()
- entry({"niu", "network"}, alias("admin", "network"), "Network")
- .dbtemplate = "niu/network"
+ entry({"niu", "network"}, nil, "Network").dbtemplate = "niu/network"
entry({"niu", "network", "lan"},
cbi("niu/network/lan", {on_success_to={"niu"}}), "Configure LAN", 10)
diff --git a/modules/niu/luasrc/controller/niu/system.lua b/modules/niu/luasrc/controller/niu/system.lua
new file mode 100644
index 0000000000..bb78edf08d
--- /dev/null
+++ b/modules/niu/luasrc/controller/niu/system.lua
@@ -0,0 +1,23 @@
+--[[
+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 req = require
+module "luci.controller.niu.system"
+
+function index()
+ entry({"niu", "system"}, nil, "System").dbtemplate = "niu/system"
+
+ entry({"niu", "system", "general"},
+ cbi("niu/system/general", {on_success_to={"niu"}}), "General", 10)
+end