mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Remove WAN info on overview page for now
This commit is contained in:
		
							parent
							
								
									48e3b85f88
								
							
						
					
					
						commit
						b0bc61a352
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -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 = '<em><%:Not connected%></em>'; | ||||
| 			} | ||||
| 			<% end %> | ||||
| 			<% end %> | ||||
| 
 | ||||
| 			<% if has_dsl then %> | ||||
| 				var dsl_i = document.getElementById('dsl_i'); | ||||
|  | @ -718,6 +721,7 @@ | |||
| 	<legend><%:Network%></legend> | ||||
| 
 | ||||
| 	<table width="100%" cellspacing="10"> | ||||
| 		<% if has_mptcp == "0" then %> | ||||
| 		<tr><td width="33%" style="vertical-align:top"><%:IPv4 WAN Status%></td><td> | ||||
| 			<table><tr> | ||||
| 				<td id="wan4_i" style="width:16px; text-align:center; padding:3px"><img src="<%=resource%>/icons/ethernet_disabled.png" /><br /><small>?</small></td> | ||||
|  | @ -732,6 +736,7 @@ | |||
| 			</tr></table> | ||||
| 		</td></tr> | ||||
| 		<% end %> | ||||
| 		<% end %> | ||||
| 		<tr><td width="33%"><%:Active Connections%></td><td id="conns">-</td></tr> | ||||
| 	</table> | ||||
| </fieldset> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue