From 1a88cf0294eea74c052208b3e19c979ec95811e1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 14 May 2023 17:10:30 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 1ac1aa81..2c8c9de2 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -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