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