#!/bin/bash while true; do tmp="`aticonfig --adapter=0 --od-gettemperature | grep Temperature | awk '{print $5}'`" temp=$( printf "%0.f\n" $tmp ) if [ $temp -lt 45 ]; then echo "temp=$temp fanspeed=0" aticonfig --pplib-cmd "set fanspeed 0 0" elif [ $temp -lt 55 ]; then echo "temp=$temp fanspeed=40" aticonfig --pplib-cmd "set fanspeed 0 40" else echo "temp=$temp fanspeed=100" aticonfig --pplib-cmd "set fanspeed 0 100" fi sleep 5 done
![Share on Facebook Facebook](http://www.rinta-aho.org/blog/wp-content/plugins/social-media-feather/synved-social/addons/extra-icons/image/social/clearslate/64x64/facebook.png)
![Share on Twitter twitter](http://www.rinta-aho.org/blog/wp-content/plugins/social-media-feather/synved-social/addons/extra-icons/image/social/clearslate/64x64/twitter.png)
![Share on Reddit reddit](http://www.rinta-aho.org/blog/wp-content/plugins/social-media-feather/synved-social/addons/extra-icons/image/social/clearslate/64x64/reddit.png)
![Pin it with Pinterest pinterest](http://www.rinta-aho.org/blog/wp-content/plugins/social-media-feather/synved-social/addons/extra-icons/image/social/clearslate/64x64/pinterest.png)
![Share on Linkedin linkedin](http://www.rinta-aho.org/blog/wp-content/plugins/social-media-feather/synved-social/addons/extra-icons/image/social/clearslate/64x64/linkedin.png)
![Share by email mail](http://www.rinta-aho.org/blog/wp-content/plugins/social-media-feather/synved-social/addons/extra-icons/image/social/clearslate/64x64/mail.png)