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 ""