Update powerwall.sh
This commit is contained in:
@@ -597,7 +597,8 @@ CHECKPOWER(){
|
|||||||
if [ -f ${hostfile} ]; then
|
if [ -f ${hostfile} ]; then
|
||||||
host=${hostfile%.*}; host=${host##*/}
|
host=${hostfile%.*}; host=${host##*/}
|
||||||
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]}"
|
||||||
rm -f ${hostfile}
|
rm -f ${hostfile}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user