Update powerwall.sh
This commit is contained in:
@@ -594,9 +594,9 @@ CHECKPOWER(){
|
||||
|
||||
until [ "${checked}" != "" ]; do
|
||||
for hostfile in "${PW_TMPFOLDER}/*.hostpower"; do
|
||||
echo "HERE: $host = $hostfile"
|
||||
if [ -f ${hostfile} ]; then
|
||||
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}
|
||||
|
||||
Reference in New Issue
Block a user