)
-- 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 = { }
netdevs[net:ifname()] = dev:name()
if net.iwdata.ifname then
- local signal = net.iwinfo.signal or "N/A"
- local noise = net.iwinfo.noise or "N/A"
+ local signal = net.iwinfo.signal or "N/A"
+ local noise = net.iwinfo.noise or "N/A"
local q = net.iwinfo.quality or "0"
local qmax = net.iwinfo.quality_max or "100"
local qperc = q / qmax * 100
<table class="cbi-section-table">
<% if not defroutev4 and not defroutev6 then %>
- <%:No default routes known.%>
+ <%:No defaultroutes known.%>
<%else%>
<tr class="cbi-section-table-titles">
<th class="cbi-section-table-cell"><%:Network%></th>
<% end %>
<%+footer%>
-