Skip to content

Commit

Permalink
Merge pull request #1 from Tho85/hddtemp-unknown
Browse files Browse the repository at this point in the history
Ignore HDD temperature if hddtemp exits without returning a number
  • Loading branch information
scus1 committed Feb 7, 2016
2 parents 22516f1 + ade6acb commit bb1667e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/fancontrol/fancontrol.sh
Expand Up @@ -31,6 +31,8 @@ while true; do
if [ "$?" -ne 0 ]; then
MAX_TEMP=99
>&2 echo "Could not determine HDD ${HDD} temperature, assuming worst case"
elif [ -z "$HDD_TEMP" ]; then
$DEBUG && echo "HDD ${HDD} temperature unknown, device asleep?"
else
$DEBUG && echo "HDD ${HDD} temperature is ${HDD_TEMP}"
if [ "$HDD_TEMP" -gt "$MAX_TEMP" ]; then
Expand Down

0 comments on commit bb1667e

Please sign in to comment.