From a417559231f5cd8048a556939da4f7426b8fc0e5 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 28 May 2009 16:46:02 +0200 Subject: [PATCH] allow for temps in /proc/acpi/thermal_zone/THRC/temperature 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 c37bd2c9..e62f1479 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/THM"*"/temperature"`; do +for i in `ls "$DIR/TH"*"/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 482ee3dd..a90fde96 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/THM"*"/temperature"`; do +for i in `ls "$DIR/TH"*"/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