From d410d525d60816f46b603da5cc5beb3127d998ff Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 28 May 2009 16:47:34 +0200 Subject: [PATCH] be even more liberal with the temp zone search Signed-off-by: Dustin Kirkland --- bin/temp-c | 2 +- bin/temp-f | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/temp-c b/bin/temp-c index e62f1479..57aa1dc1 100755 --- a/bin/temp-c +++ b/bin/temp-c @@ -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 diff --git a/bin/temp-f b/bin/temp-f index a90fde96..cfee7552 100755 --- a/bin/temp-f +++ b/bin/temp-f @@ -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