mirror of
https://github.com/unraid/webgui.git
synced 2026-03-03 06:40:50 -06:00
Only show main ports in dashboard and system info
This commit is contained in:
@@ -154,7 +154,7 @@ echo "$memory_installed GB (max. installable capacity $memory_maximum GB)$star";
|
||||
</div>
|
||||
<div><span style="width:90px; display:inline-block"><strong>Network:</strong></span>
|
||||
<?
|
||||
exec("ifconfig -s|grep -Po '^(bond|eth)\d+'",$sPorts);
|
||||
exec("ls /sys/class/net|grep -Po '^(bond|eth)\d+$'",$sPorts);
|
||||
$i = 0;
|
||||
foreach ($sPorts as $port) {
|
||||
$mtu = file_get_contents("/sys/class/net/$port/mtu");
|
||||
|
||||
Reference in New Issue
Block a user