#!/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