Update powerwall.sh

This commit is contained in:
2023-05-14 17:00:34 -05:00
parent 3e54eb01d3
commit f0010811d5

View File

@@ -16,11 +16,11 @@ 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(){
[ "${1}" != "" ] && SENSORS=("${1}") || SENSORS=SENSOR_ID
[ "${1}" != "" ] && SENSORS=("${1}") || SENSORS=SENSOR_ID[@]
for x in "${!SENSOR_ID[@]}"; do printf "[%s]=%s\n" "$x" "${SENSOR_ID[$x]}" ; done
for x in "${!SENSORS[@]}"; do printf "[%s]=%s\n" "$x" "${SENSORS[$x]}" ; done
for SENSOR in ${!SENSORS[@]}; do
for SENSOR in ${!SENSORS}; do
echo "HERE: ${SENSORS[${SENSOR}]}"
done