Merge pull request #1012 from bergware/master

Use tabbed view for device information page
This commit is contained in:
tom mortensen
2022-01-23 15:50:10 -08:00
committed by GitHub
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -1 +1,2 @@
Type="xmenu"
Type="xmenu"
Tabs="true"
+2 -1
View File
@@ -1 +1,2 @@
Type="xmenu"
Type="xmenu"
Tabs="true"
@@ -216,13 +216,13 @@ foreach ($sPorts as $port) {
if ($link) {
$bond_mode = str_replace('Bonding Mode: ','',file("/proc/net/bonding/$port",FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)[1]);
echo "$port: $bond_mode, mtu $mtu";
} else echo "$port: bond down";
} else echo "$port: ",_("bond down");
} else {
if ($link) {
$speed = file_get_contents("$int/speed");
$duplex = file_get_contents("$int/duplex");
echo "$port: $speed Mbps, $duplex duplex, mtu $mtu";
} else echo "$port: "._("interface down");
} else echo "$port: ",_("interface down");
}
}
?>