Update powerwall.sh
This commit is contained in:
@@ -601,6 +601,7 @@ CHECKPOWER(){
|
|||||||
if [ "${watts}" == "down" ]; then hostpower="${idsCL[Red]}Host Offline"
|
if [ "${watts}" == "down" ]; then hostpower="${idsCL[Red]}Host Offline"
|
||||||
elif [ "${watts}" == "0" ]; then hostpower="${idsCL[Default]}n/a"
|
elif [ "${watts}" == "0" ]; then hostpower="${idsCL[Default]}n/a"
|
||||||
else hostpower="${idsCL[Green]}${watts} W"
|
else hostpower="${idsCL[Green]}${watts} W"
|
||||||
|
fi
|
||||||
echo -e "${idsCL[LightCyan]}HOST '${PW_iDRACHOST_SHORTNAMES[${host}]}' ${idsCL[Default]}: ${hostpower}${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}HOST '${PW_iDRACHOST_SHORTNAMES[${host}]}' ${idsCL[Default]}: ${hostpower}${idsCL[Default]}"
|
||||||
mv ${hostfile} ${hostfile}.done
|
mv ${hostfile} ${hostfile}.done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user