#!/bin/bash DEVICE=`basename $0| sed 's/^fasttemp_//g'|sed 's/\_//g'` if [ "$1" = "autoconf" ]; then echo yes exit 0 fi if [ "$1" = "config" ]; then echo "graph_title Temperature of device $DEVICE" echo 'graph_vlabel C' echo 'graph_scale no' echo 'graph_category Temperature' echo 'fasttemp.label temp' exit 0 fi FS="/mnt/1wire" cd $FS/$DEVICE/ echo -n "fasttemp.value " sed -e 's/ //g'