usr/lib/byobu/wifi_quality, usr/share/man/man1/byobu.1: support overriding

the default wireless interface, LP: #723260
This commit is contained in:
Dustin Kirkland 2011-02-27 09:29:40 -06:00
commit a8f6651214
3 changed files with 4 additions and 2 deletions

2
debian/changelog vendored
View file

@ -3,6 +3,8 @@ byobu (3.29) unreleased; urgency=low
[ Dustin Kirkland ] [ Dustin Kirkland ]
* usr/share/man/man1/byobu.1: document PS1 workaround, LP: #525552 * 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/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 ] [ Chow Loong Jin and Dustin Kirkland ]
* usr/lib/byobu/disk_io: canonicalize symlinks so that disk_io works * usr/lib/byobu/disk_io: canonicalize symlinks so that disk_io works

View file

@ -26,7 +26,7 @@ if [ "$1" = "--detail" ]; then
exit 0 exit 0
fi 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"` bitrate=`echo "$iwconfig" | grep "Bit Rate." | sed -e "s/^.*Bit Rate.//" -e "s/ .*$//g"`
[ -z "$bitrate" ] && bitrate="0" [ -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"`

View file

@ -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 \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 .SH SESSIONS