* bin/temp-*: better support for temperature zones, LP: #380885

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-28 10:40:30 +02:00
commit 6957f5abe7
3 changed files with 10 additions and 7 deletions

View file

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

View file

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

3
debian/changelog vendored
View file

@ -5,8 +5,9 @@ byobu (2.6) unreleased; urgency=low
to be controversial; users will need to call "byobu" to launch
a byobu-style screen session
* bin/network-*: set rate=0 when rate is negative (ie, on startup)
* bin/temp-*: better support for temperature zones, LP: #380885
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 26 May 2009 21:52:53 +0200
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 28 May 2009 10:40:24 +0200
byobu (2.5-0ubuntu1) karmic; urgency=low