From 8d1630c449afae52555f2a5515dd1d194a2e3b6e Mon Sep 17 00:00:00 2001 From: Ycarus Date: Fri, 8 Jun 2018 22:28:21 +0200 Subject: [PATCH] Fix overview page --- luci-mod-admin-full/luasrc/view/admin_status/index.htm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luci-mod-admin-full/luasrc/view/admin_status/index.htm b/luci-mod-admin-full/luasrc/view/admin_status/index.htm index 7e9c4d0aa..ae6a10193 100644 --- a/luci-mod-admin-full/luasrc/view/admin_status/index.htm +++ b/luci-mod-admin-full/luasrc/view/admin_status/index.htm @@ -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');