mirror of
https://github.com/unraid/webgui.git
synced 2026-05-21 05:39:37 -05:00
Merge pull request #1012 from bergware/master
Use tabbed view for device information page
This commit is contained in:
@@ -1 +1,2 @@
|
||||
Type="xmenu"
|
||||
Type="xmenu"
|
||||
Tabs="true"
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user