Only show main ports in dashboard and system info

This commit is contained in:
bergware
2016-05-22 15:06:31 +02:00
parent df8ed55b9b
commit ed8357b67d
2 changed files with 2 additions and 2 deletions

View File

@@ -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");