1
0
Fork 0
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:
Ycarus 2018-06-08 22:28:21 +02:00
parent 5f85796dcd
commit 8d1630c449

View file

@ -13,7 +13,7 @@
local has_ipv6 = fs.access("/proc/net/ipv6_route")
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 sysinfo = luci.util.ubus("system", "info") or { }
@ -223,6 +223,7 @@
if (!(npoll++ % 5))
updateHosts();
<% if has_mptcp == 0 then %>
var us = document.getElementById('upstream_status_table');
while (us.lastElementChild)
@ -270,6 +271,7 @@
'<%:DNS%> 5', (ifc6.dns) ? ifc6.dns[4] : null,
'<%:Connected%>', (ifc6.uptime > 0) ? '%t'.format(ifc6.uptime) : null));
<% end %>
<% end %>
<% if has_dsl then %>
var dsl_i = document.getElementById('dsl_i');