From b2671410bf5468443d6eb49f525d6c3e3fd7e28f Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 31 Oct 2009 17:27:07 +0000 Subject: NIU: Fixes, System --- modules/niu/luasrc/controller/niu/network.lua | 3 +-- modules/niu/luasrc/controller/niu/system.lua | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 modules/niu/luasrc/controller/niu/system.lua (limited to 'modules/niu/luasrc/controller') 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 + +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 -- cgit v1.2.3