) who change the color of displayed temperature, frequency, battery and rootfs in according to status..............
FILE_TEMP=`cat /sys/class/power_supply/bq27200-0/temp` echo "Temp got from file: " $FILE_TEMP MISIAK_TEMP=$((FILE_TEMP/10)) echo "Misiak way: " $MISIAK_TEMP CIPPER_TEMP=$(($FILE_TEMP/10)) echo "Cipper way: " $CIPPER_TEMP
| The Following User Says Thank You to misiak For This Useful Post: | ||

The whole $(( )) construction is pretty naughty. If you write scripts sometimes and need it, you can read more in this bash scripting tutorial: http://www.softpanorama.org/Scriptin...ressions.shtml
sudo gainroot modprobe bq27x00_battery echo bq27x00_battery >> /etc/modules
awk '{ print $1/10}' </sys/class/power_supply/bq27200-0/temp
awk '{ print $1/10}' </sys/class/power_supply/bq27200-0/temp
awk '{ print $1/10 " °C"}' </sys/class/power_supply/bq27200-0/temp
| The Following User Says Thank You to mr_pingu For This Useful Post: | ||
awk '{ print $1/10 " °C"}' </sys/class/power_supply/bq27200-0/temp
(easy ^^)