From a35337e6a150412a5a7be8b4fe06eaba04dc4fa5 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 19 Aug 2008 17:02:40 +0000 Subject: Minor bugfixes Added possibility to add networks from Wifi page --- modules/admin-mini/luasrc/model/cbi/mini/network.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/admin-mini/luasrc/model/cbi') diff --git a/modules/admin-mini/luasrc/model/cbi/mini/network.lua b/modules/admin-mini/luasrc/model/cbi/mini/network.lua index e36d7c030a..692f7c456a 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/network.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/network.lua @@ -16,13 +16,13 @@ require("luci.tools.webadmin") require("luci.sys") luci.model.uci.load_state("network") -local wireless = luci.model.uci.get_all("network") +local network = luci.model.uci.get_all("network") luci.model.uci.unload("network") local netstat = luci.sys.net.deviceinfo() local ifaces = {} -for k, v in pairs(wireless) do +for k, v in pairs(network) do if v[".type"] == "interface" and k ~= "loopback" then table.insert(ifaces, v) end -- cgit v1.2.3