From a8f6651214d7ad2d67514a00c3fbe5ad78dbedf8 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 27 Feb 2011 09:29:40 -0600 Subject: [PATCH] usr/lib/byobu/wifi_quality, usr/share/man/man1/byobu.1: support overriding the default wireless interface, LP: #723260 --- debian/changelog | 2 ++ usr/lib/byobu/wifi_quality | 2 +- usr/share/man/man1/byobu.1 | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 8f64393d..6d53cd0b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ byobu (3.29) unreleased; urgency=low [ Dustin Kirkland ] * usr/share/man/man1/byobu.1: document PS1 workaround, LP: #525552 * usr/share/man/man1/byobu.1: fix minor manpage typo, add SERVICES example + * usr/lib/byobu/wifi_quality, usr/share/man/man1/byobu.1: support overriding + the default wireless interface, LP: #723260 [ Chow Loong Jin and Dustin Kirkland ] * usr/lib/byobu/disk_io: canonicalize symlinks so that disk_io works diff --git a/usr/lib/byobu/wifi_quality b/usr/lib/byobu/wifi_quality index a6cb8197..7f6677e7 100755 --- a/usr/lib/byobu/wifi_quality +++ b/usr/lib/byobu/wifi_quality @@ -26,7 +26,7 @@ if [ "$1" = "--detail" ]; then exit 0 fi -iwconfig=`/sbin/iwconfig 2>/dev/null` +iwconfig=`/sbin/iwconfig $MONITORED_NETWORK 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"` diff --git a/usr/share/man/man1/byobu.1 b/usr/share/man/man1/byobu.1 index 83cad3e1..bb2905d3 100644 --- a/usr/share/man/man1/byobu.1 +++ b/usr/share/man/man1/byobu.1 @@ -89,7 +89,7 @@ Note that DATA=\fI$HOME/.byobu\fP. \fBwhoami\fP \- the name of the user who owns the screen session; displayed in the upper bar toward the far right in bold black text on a grey background -\fBwifi_quality\fP \- the connection rate and signal quality of the wifi connection; displayed in the lower bar toward the right in black text on a cyan background; the connection rate is in 'Mb/s' and the signal quality is as a percentage with a trailing '%' +\fBwifi_quality\fP \- the connection rate and signal quality of the wifi connection; displayed in the lower bar toward the right in black text on a cyan background; the connection rate is in 'Mb/s' and the signal quality is as a percentage with a trailing '%'; override the default interface by specifying an alternate interface with MONITORED_NETWORK=wlan0 in \fI$DATA/statusrc\fP .SH SESSIONS