From 806a29c86d1e79b498bd8aa68928993244c2a2d4 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Tue, 15 Sep 2009 00:17:32 -0500 Subject: [PATCH] fix wifi string processing for arm Signed-off-by: Dustin Kirkland --- bin/wifi_quality | 2 +- debian/changelog | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/wifi_quality b/bin/wifi_quality index c1cf1e2a..3e3f197d 100755 --- a/bin/wifi_quality +++ b/bin/wifi_quality @@ -25,5 +25,5 @@ fi iwconfig=`/sbin/iwconfig 2>/dev/null` bitrate=`echo "$iwconfig" | grep "Bit Rate." | sed -e "s/^.*Bit Rate.//" -e "s/ .*$//g"` [ -z "$bitrate" ] && bitrate="0" -quality=`echo "$iwconfig" | grep "Link Quality=" | sed -e "s/^.*Link Quality=//" -e "s/ .*$//g"` +quality=`echo "$iwconfig" | grep "Link Quality." | sed -e "s/^.*Link Quality.//" -e "s/ .*$//g"` echo | awk "{printf \"\005{=b Ck}%s\005{-}\005{= Ck}Mb/s,\005{-}\005{=b Ck}%d\005{-}\005{= Ck}%%\005{-} \", $bitrate, 100*$quality}" diff --git a/debian/changelog b/debian/changelog index 9bb84cb9..3040f745 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,10 @@ byobu (2.33) unreleased; urgency=low * cpu_count, disk, logo, network, reboot_required, release, temp_c, - temp_f, updates_available: make byobu status scripts friendlier + temp_f, updates_available, wifi: make byobu status scripts friendlier for busybox environments (tested on the Palm Pre) - -- Dustin Kirkland Mon, 14 Sep 2009 23:47:29 -0500 + -- Dustin Kirkland Tue, 15 Sep 2009 00:17:15 -0500 byobu (2.32-0ubuntu1) karmic; urgency=low