Alix 3d3 scripts
by ac3bf1 on May.18, 2010, under Gadgets, Tutorials
Simple stats script:
#!/bin/bash clear while [ 1 ] do uptime df -h | grep Filesystem df -h | grep rootfs df -h | grep usb echo "" Temp1=$(cat /sys/bus/i2c/drivers/lm90/0-004c/temp1_input) Temp2=$(cat /sys/bus/i2c/drivers/lm90/0-004c/temp2_input) echo "MB TÂ = "$Temp1 echo "CPU T = "$Temp2 sleep 1 clear done
Insert it in a file. I called it stats.sh
chmod a+x stats.sh
and run with ./stats.sh
It updates every second and returns:
- uptime with load
- Disk space and usb disk space
- MB temp
- CPU temp
You can add all you want in there or remove what you don’t need :-)


August 15th, 2011 on 10:14 am
Hi
where do you obtain a I2C temperature sensor for ALIX 3d3?.
Thank you.
August 15th, 2011 on 3:44 pm
The Alix has an integrated temp sensor… Actually it has two, one for the board and one for the cpu.
Jon