Hide settings when interface is member of a bond or bridge

+ Bond/bridge membership is shown before interface state
This commit is contained in:
bergware
2018-04-02 21:16:56 +02:00
parent bc03b43a38
commit 7fca22bfae
2 changed files with 18 additions and 9 deletions
+1 -1
View File
@@ -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>";
}
?>