Update powerwall.sh
This commit is contained in:
10
powerwall.sh
10
powerwall.sh
@@ -598,10 +598,12 @@ CHECKPOWER(){
|
||||
for hostfile in ${PW_TMPFOLDER}/*.hostpower; do
|
||||
if [ -f ${hostfile} ] && [ "${hostfile}" != ${PW_TMPFOLDER}/*.hostpower ]; then
|
||||
host=${hostfile%.*}; host=${host##*/}
|
||||
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 '${host}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}"
|
||||
mv ${hostfile} ${hostfile}.done
|
||||
if [ "${host}" != "*" ]; then
|
||||
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 '${host}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}"
|
||||
mv ${hostfile} ${hostfile}.done
|
||||
fi
|
||||
fi
|
||||
done
|
||||
[ -f ${PW_TMPFOLDER}/done.hostpower ] && checked=done
|
||||
|
||||
Reference in New Issue
Block a user