modules/freifunk: Optimize variable init and fix whitespace issues

This commit is contained in:
Manuel Munz 2010-11-26 14:12:35 +00:00
parent 4451d551a4
commit 1c0f48fed6

View file

@ -19,9 +19,7 @@ local memory = string.format("%.2f MB (%.0f%% %s, %.0f%% %s, %.0f%% %s)",
)
-- wireless
local uci = require "luci.model.uci".cursor()
local ntm = require "luci.model.network"
ntm.init(uci)
local ntm = require "luci.model.network".init()
local devices = ntm:get_wifidevs()
local netlist = { }
local netdevs = { }
@ -170,4 +168,3 @@ local defroutev6 = sys.net.defaultroute6 ()
<% end %>
<%+footer%>