From de350e2b82537321a04dbb546716d91713c15c24 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 12 Jan 2024 19:16:43 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 6ec48cc6..0e745c31 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -869,13 +869,14 @@ PDUCONTROL(){ unset IFS p=1 for port in "${!PORT_DESC[@]}"; do + echo "HERE: $port - ${PORT_POWER[${port}]} - ${PORT_DESC[${port}]}" p=$(expr ${port} + 1) [ ${PORT_POWER[${port}]} -eq 1 ] && portpower_disp="${idsCL[Green]}ON" || portpower_disp="${idsCL[LightRed]}OFF" [ ${p} -lt 10 ] && pp=" ${p}" || pp=${p} # c=0; spc=''; spc1=`expr 28 - ${#port}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done spc=" " echo -e "${pp}) ${idsCL[LightCyan]}${PORT_DESC[${port}]}${spc}${idsCL[Default]}: ${portpower_disp}${idsCL[Default]}" - ((p++)) + # ((p++)) done echo -e "" echo -e ""