prefer $MONITORED_TEMP, if available

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-08-17 14:05:29 -05:00
commit e9471389d6
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ if [ "$1" = "--detail" ]; then
exit 0
fi
for i in `ls $DIR/*/temperature`; do
for i in $MONITORED_TEMP `ls $DIR/*/temperature`; do
t=$(sed "s/^[^0-9]\+//" "$i" | sed "s/\s.*$//")
printf "\005{=b kY}%s\005{-}\005{= kY}\260C\005{-} " "$t"
break

View file

@ -23,7 +23,7 @@ if [ "$1" = "--detail" ]; then
exit 0
fi
for i in `ls $DIR/*/temperature`; do
for i in $MONITORED_TEMP `ls $DIR/*/temperature`; do
t=$(sed "s/^[^0-9]\+//" "$i" | sed "s/\s.*$//" | awk '{printf "%.0f", $1 *9/5 + 32}')
printf "\005{=b kY}%s\005{-}\005{= kY}\260F\005{-} " "$t"
break