Update powerwall.sh
This commit is contained in:
@@ -601,14 +601,11 @@ CHECKPOWER(){
|
|||||||
watts=$(cat ${hostfile})
|
watts=$(cat ${hostfile})
|
||||||
# echo -e "${idsCL[LightCyan]}HOST '${PW_iDRACHOST_SHORTNAMES[${host}]}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}"
|
# echo -e "${idsCL[LightCyan]}HOST '${PW_iDRACHOST_SHORTNAMES[${host}]}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}"
|
||||||
echo -e "${idsCL[LightCyan]}HOST '${host}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}HOST '${host}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}"
|
||||||
rm -f ${hostfile}
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ -f ${PW_TMPFOLDER}/done.hostpower ]; then
|
[ -f ${PW_TMPFOLDER}/done.hostpower ] && checked=done
|
||||||
checked=done
|
|
||||||
rm -f ${PW_TMPFOLDER}/done.hostpower
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
rm -f ${PW_TMPFOLDER}/*.hostpower
|
||||||
|
|
||||||
[ "${action}" != "" ] && echo
|
[ "${action}" != "" ] && echo
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user