diff options
author | Steven Barth <steven@midlink.org> | 2008-08-19 17:02:40 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-19 17:02:40 +0000 |
commit | a35337e6a150412a5a7be8b4fe06eaba04dc4fa5 (patch) | |
tree | b65276921c9cbeecad49f85bc513f2c9cf2db933 /modules/admin-mini/luasrc | |
parent | bfcefb717f6f23d8382bd7b2a3b877c3e54cc29a (diff) |
Minor bugfixes
Added possibility to add networks from Wifi page
Diffstat (limited to 'modules/admin-mini/luasrc')
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/network.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |