diff --git a/check-temp.sh b/check-temp.sh index 6a5babf..adcb955 100755 --- a/check-temp.sh +++ b/check-temp.sh @@ -3,7 +3,7 @@ IPMIUSER=`cat /user.txt` IPMIPW=`cat /pw.txt` FANSPEED=`cat /fanspeed.txt` -MAXTEMP=32 +MAXTEMP=${MAXTEMP:-32} TEMP=$(ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW sdr type temperature |grep Inlet |grep degrees |grep -Po '\d{2}' | tail -1)