mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 10:38:50 -05:00
Hide settings when interface is member of a bond or bridge
+ Bond/bridge membership is shown before interface state
This commit is contained in:
@@ -13,6 +13,6 @@
|
||||
<?
|
||||
$port = $_POST['port'] ?: 'eth0';
|
||||
if (exec("ip link show ".escapeshellarg($port)."|grep -om1 'NO-CARRIER'")) {
|
||||
echo "<b>Interface $port is down. Check cable!</b>";
|
||||
echo "<b>Interface ".str_replace('eth', 'Ethernet Port ', $port)." is down. Check cable!</b>";
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user