Well, this one. Sorry, this is the first of the thread so I did not think about the others further in the thread. My fault! I use the version with battery indicator and min freq/max freq.
root leafpad /usr/local/bin/overclock
#!/bin/sh TEMP=`cat /sys/class/power_supply/bq27200-0/temp` TEMP=$((TEMP/10)) echo "Temp is :" $TEMP "C" MAXSPEED="1150" if [ $TEMP -gt "38" ] ; then MAXSPEED="1000" ; fi if [ $TEMP -gt "40" ] ; then MAXSPEED="950" ; fi if [ $TEMP -gt "43" ] ; then MAXSPEED="850" ; fi if [ $TEMP -gt "45" ] ; then MAXSPEED="750" ; fi if [ $TEMP -gt "47" ] ; then MAXSPEED="600" ; fi echo "Setting max as :" $MAXSPEED "Mhz" kernel-config limits 250 $MAXSPEED
echo -e "TEMPERATURE : <span font = \\"14\\"><b>`cat /sys/class/power_supply/bq27200-0/temp` C</b></span>
echo -e "TEMPERATURE : <span font = \\"14\\"><b>`awk '{ print $1/10}' < /sys/class/power_supply/bq27200-0/temp` C</b></span>