From e9471389d64d17804d6f39cc5371d8ff19e01f1d Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 17 Aug 2009 14:05:29 -0500 Subject: [PATCH] prefer $MONITORED_TEMP, if available 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 65416a54..57932315 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/*/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 diff --git a/bin/temp_f b/bin/temp_f index 3f9faea7..075696e6 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/*/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