Update power.inc.sh
This commit is contained in:
@@ -872,7 +872,7 @@ PDUCONTROL(){
|
|||||||
port=$(expr ${p} + 1)
|
port=$(expr ${p} + 1)
|
||||||
[ ${PORT_POWER[${p}]} -eq 1 ] && portpower_disp="${idsCL[Green]}ON" || portpower_disp="${idsCL[LightRed]}OFF"
|
[ ${PORT_POWER[${p}]} -eq 1 ] && portpower_disp="${idsCL[Green]}ON" || portpower_disp="${idsCL[LightRed]}OFF"
|
||||||
[ ${port} -lt 10 ] && pp=" ${port}" || pp=${port}
|
[ ${port} -lt 10 ] && pp=" ${port}" || pp=${port}
|
||||||
c=0; spc=''; spc1=`expr 28 - ${#port}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
c=0; spc=''; spc1=`expr 28 - ${#PORT_DESC[${p}]}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
||||||
echo -e "${pp}) ${idsCL[LightCyan]}${PORT_DESC[${p}]}${spc}${idsCL[Default]}: ${portpower_disp}${idsCL[Default]}"
|
echo -e "${pp}) ${idsCL[LightCyan]}${PORT_DESC[${p}]}${spc}${idsCL[Default]}: ${portpower_disp}${idsCL[Default]}"
|
||||||
done
|
done
|
||||||
echo -e ""
|
echo -e ""
|
||||||
|
|||||||
Reference in New Issue
Block a user