modules/freifunk: Optimize variable init and fix whitespace issues
This commit is contained in:
parent
4451d551a4
commit
1c0f48fed6
1 changed files with 4 additions and 7 deletions
|
@ -19,9 +19,7 @@ local memory = string.format("%.2f MB (%.0f%% %s, %.0f%% %s, %.0f%% %s)",
|
||||||
)
|
)
|
||||||
|
|
||||||
-- wireless
|
-- wireless
|
||||||
local uci = require "luci.model.uci".cursor()
|
local ntm = require "luci.model.network".init()
|
||||||
local ntm = require "luci.model.network"
|
|
||||||
ntm.init(uci)
|
|
||||||
local devices = ntm:get_wifidevs()
|
local devices = ntm:get_wifidevs()
|
||||||
local netlist = { }
|
local netlist = { }
|
||||||
local netdevs = { }
|
local netdevs = { }
|
||||||
|
@ -133,7 +131,7 @@ local defroutev6 = sys.net.defaultroute6 ()
|
||||||
<table class="cbi-section-table">
|
<table class="cbi-section-table">
|
||||||
|
|
||||||
<% if not defroutev4 and not defroutev6 then %>
|
<% if not defroutev4 and not defroutev6 then %>
|
||||||
<%:No default routes known.%>
|
<%:No defaultroutes known.%>
|
||||||
<%else%>
|
<%else%>
|
||||||
<tr class="cbi-section-table-titles">
|
<tr class="cbi-section-table-titles">
|
||||||
<th class="cbi-section-table-cell"><%:Network%></th>
|
<th class="cbi-section-table-cell"><%:Network%></th>
|
||||||
|
@ -170,4 +168,3 @@ local defroutev6 = sys.net.defaultroute6 ()
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%+footer%>
|
<%+footer%>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue