From f81be4baecfbd88a5a5111238d90bfb3ba745dca Mon Sep 17 00:00:00 2001 From: bergware Date: Wed, 8 Jun 2016 00:28:55 +0200 Subject: [PATCH] Make color coding more logical --- plugins/dynamix/Eth0.page | 6 +++--- plugins/dynamix/EthX.page | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/dynamix/Eth0.page b/plugins/dynamix/Eth0.page index 4d293dd45..742f1850c 100644 --- a/plugins/dynamix/Eth0.page +++ b/plugins/dynamix/Eth0.page @@ -50,9 +50,9 @@ if (isset($eth0)) foreach ($eth0 as $key => $val) if (substr($key,0,6)=='VLANID' ?> diff --git a/plugins/dynamix/EthX.page b/plugins/dynamix/EthX.page index 0a5f7f58b..aa50ec73c 100644 --- a/plugins/dynamix/EthX.page +++ b/plugins/dynamix/EthX.page @@ -31,20 +31,20 @@ $cmd = 'Down'; if (strlen(exec("ip link show ethX|grep -om1 ',UP[,>]'"))==0) { $more = true; $reason = "Interface is shutdown (inactive)"; - $class = 'shut'; + $class = 'blue'; $cmd = 'Up'; } elseif ($bond_ethX) { $more = true; $reason = "Interface is member of ".$eth0['BONDNAME']." (see interface eth0)"; - $class = 'member'; + $class = 'green'; } elseif ($bridge_ethX) { $more = true; $reason = "Interface is member of ".$eth0['BRNAME']." (see interface eth0)"; - $class = 'member'; + $class = 'green'; } elseif (empty($ethX)) { $more = true; $reason = "Interface is not configured"; - $class = 'unset'; + $class = 'red'; } else { $more = false; }