3 ls /sys/bus/w1/devices/w1_bus_master*/*-*/w1_slave | while read path ; do
4 temp=$( cat $path | grep t= | cut -d= -f2 )
5 if [ $temp != 85000 ] ; then # 85 is error
6 temp=$( echo $temp | awk '{ printf "%.3f\n", $1 / 1000 }' )
7 id=$( echo $path | cut -d/ -f 7 )
8 name=$( grep "^$id" id2name.txt | cut -d' ' -f2 )