Update temp.inc.sh

This commit is contained in:
2024-01-09 16:30:55 -06:00
parent 5f7ac75daf
commit 4d3c49611e

View File

@@ -554,7 +554,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
fi
####### Fan Issue Workaround #######
echo -en "HERE: ${SENSORa} - ${FanSpeed} = "
echo -en "HERE: ${SENSORa} [ ${SENSOR} ] - ${FanSpeed} = "
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ] && [ ! -f ${PW_TMPFOLDER}/${SENSORa}.down ] && [ "${FanSpeed}" != "" ] && ([ "${PW_HOST_IDRACS[${SENSORa}]}" == "10.2.1.21" ] || [ "${PW_HOST_IDRACS[${SENSORa}]}" == "10.10.2.27" ]) && [ "${SENSOR}" == "CPU1" ]; then
echo -en "yes1 - "
if [ ! -f ${PW_TMPFOLDER}/.fancheck.${SENSORa} ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.fancheck.${SENSORa})) -ge 300 ]; then