diff --git a/README b/README old mode 100644 new mode 100755 diff --git a/THANKS b/THANKS old mode 100644 new mode 100755 diff --git a/check_temp.sh b/check_temp.sh index 2aa4f39..084b064 100755 --- a/check_temp.sh +++ b/check_temp.sh @@ -193,7 +193,9 @@ fi #Get the temperature -TEMP=`${SENSORPROG} | grep "$sensor" | cut -d+ -f2 | cut -c1-2 ` +TEMP=`${SENSORPROG} | grep "$sensor" | cut -d+ -f2 | cut -c1-2 | head -n1` +#Old way - Get the temperature +#TEMP=`${SENSORPROG} | grep "$sensor" | awk '{print $3}' | cut -c2-3 | head -n1` # Check if the thresholds have been set correctly