Update powerwall.sh

This commit is contained in:
2023-05-14 17:10:30 -05:00
parent ccb7d2a978
commit 1a88cf0294

View File

@@ -13,8 +13,6 @@ shopt -s lastpipe
VERBOSE=false
#ssh root@10.5.10.35 '/vmfs/volumes/NFS_ESXi-Vault/esxi-shutdown.sh > /dev/null 2>&1' & > /dev/null 2>&1
CHECKTEMP(){
if [ "${1}" != "" ]; then
reading=$(CHECKTEMPSENSOR ${1})
@@ -23,7 +21,7 @@ CHECKTEMP(){
else
for SENSOR in ${!SENSOR_ID[@]}; do
reading=$(CHECKTEMPSENSOR ${SENSOR})
c=0; cw=30; spc=''; spc1=${cw}-${#SENSOR}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
#c=0; cw=30; spc=''; spc1=${cw}-${#SENSOR}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo "${SENSOR}${spc}: ${reading}"
done
fi