be even more liberal with the temp zone search

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-28 16:47:34 +02:00
commit d410d525d6
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/TH"*"/temperature"`; do
for i in `ls "$DIR/"*"/temperature"`; do
t=$(sed "s/^[^0-9]\+//" "$i" | sed "s/\s.*$//")
printf "\005{= kY}%sC\005{-} " "$t"
break

View file

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