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 d29a89427..c3abe2671 100644 --- a/luci-mod-admin-full/luasrc/view/admin_status/index.htm +++ b/luci-mod-admin-full/luasrc/view/admin_status/index.htm @@ -12,6 +12,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_wifi = ((fs.stat("/etc/config/wireless", "size") or 0) > 0) local sysinfo = luci.util.ubus("system", "info") or { } @@ -171,6 +172,7 @@ if (!(npoll++ % 5)) updateHosts(); + <% if has_mptcp == "0" then %> var si = document.getElementById('wan4_i'); var ss = document.getElementById('wan4_s'); var ifc = info.wan; @@ -293,6 +295,7 @@ ss6.innerHTML = '<%:Not connected%>'; } <% end %> + <% end %> <% if has_dsl then %> var dsl_i = document.getElementById('dsl_i'); @@ -718,6 +721,7 @@ <%:Network%> + <% if has_mptcp == "0" then %> <% end %> + <% end %>
<%:IPv4 WAN Status%> @@ -732,6 +736,7 @@

?
<%:Active Connections%>-