mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix overview page
This commit is contained in:
parent
5f85796dcd
commit
8d1630c449
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
local has_ipv6 = fs.access("/proc/net/ipv6_route")
|
local has_ipv6 = fs.access("/proc/net/ipv6_route")
|
||||||
local has_dhcp = fs.access("/etc/config/dhcp")
|
local has_dhcp = fs.access("/etc/config/dhcp")
|
||||||
local has_mptcp = luci.sys.exec("sysctl -n net.mptcp.mptcp_enabled | tr -d '\n'")
|
local has_mptcp = (luci.sys.exec("sysctl -n net.mptcp.mptcp_enabled | tr -d '\n'")) or 0
|
||||||
local has_wifi = ((fs.stat("/etc/config/wireless", "size") or 0) > 0)
|
local has_wifi = ((fs.stat("/etc/config/wireless", "size") or 0) > 0)
|
||||||
|
|
||||||
local sysinfo = luci.util.ubus("system", "info") or { }
|
local sysinfo = luci.util.ubus("system", "info") or { }
|
||||||
|
@ -223,6 +223,7 @@
|
||||||
if (!(npoll++ % 5))
|
if (!(npoll++ % 5))
|
||||||
updateHosts();
|
updateHosts();
|
||||||
|
|
||||||
|
<% if has_mptcp == 0 then %>
|
||||||
var us = document.getElementById('upstream_status_table');
|
var us = document.getElementById('upstream_status_table');
|
||||||
|
|
||||||
while (us.lastElementChild)
|
while (us.lastElementChild)
|
||||||
|
@ -270,6 +271,7 @@
|
||||||
'<%:DNS%> 5', (ifc6.dns) ? ifc6.dns[4] : null,
|
'<%:DNS%> 5', (ifc6.dns) ? ifc6.dns[4] : null,
|
||||||
'<%:Connected%>', (ifc6.uptime > 0) ? '%t'.format(ifc6.uptime) : null));
|
'<%:Connected%>', (ifc6.uptime > 0) ? '%t'.format(ifc6.uptime) : null));
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% if has_dsl then %>
|
<% if has_dsl then %>
|
||||||
var dsl_i = document.getElementById('dsl_i');
|
var dsl_i = document.getElementById('dsl_i');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue