View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#105
#!/bin/sh

t=`cat /sys/devices/platform/i2c_omap.1/i2c-1/1-0048/temp1_input 2>/dev/null`
if [ "$t" = "" ]
then
echo "No temperature sensor detected" > /dev/stderr
exit 1
else
t=`echo $t | sed -e 's/\(.*\)\(..\).$/\1\.\2C/'`
echo $t
fi
internal-temp script. (by ag2, sorry didn't mean to sound like I was taking credit)

Last edited by qwerty12; 2008-05-14 at 14:50.
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post: