Update powerwall.sh

This commit is contained in:
2023-10-31 09:27:11 -05:00
parent d43d5bc435
commit 20b673f752

View File

@@ -595,6 +595,7 @@ CHECKPOWER(){
until [ "${checked}" != "" ]; do
for hostfile in "${PW_TMPFOLDER}/*.hostpower"; do
host=${hostfile%.*}; host=${host##*/}
echo "HERE: $host = $hostfile"
watts=$(cat ${hostfile})
echo -e "${idsCL[LightCyan]}HOST '${PW_iDRACHOST_SHORTNAMES[${host}]}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}"
rm -f ${hostfile}