* debian/control, usr/bin/wifi-status, usr/share/man/man1/wifi-

status.1:
  - move the wifi-status command to byobu, from bikeshed
  - fantastic demonstration of byobu split screens
This commit is contained in:
Dustin Kirkland 2014-06-18 12:50:57 -05:00
commit 943c9453d6
4 changed files with 85 additions and 1 deletions

4
debian/changelog vendored
View file

@ -6,6 +6,10 @@ byobu (5.81) unreleased; urgency=medium
* debian/control, usr/bin/ctail, usr/share/man/man1/ctail.1: * debian/control, usr/bin/ctail, usr/share/man/man1/ctail.1:
- move the ctail command over to byobu, from bikeshed - move the ctail command over to byobu, from bikeshed
- ctail will tail and colorize log files - ctail will tail and colorize log files
* debian/control, usr/bin/wifi-status, usr/share/man/man1/wifi-
status.1:
- move the wifi-status command to byobu, from bikeshed
- fantastic demonstration of byobu split screens
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 28 Apr 2014 09:36:59 -0700 -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 28 Apr 2014 09:36:59 -0700

3
debian/control vendored
View file

@ -30,7 +30,8 @@ Suggests:
ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium), ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium),
update-notifier-common, update-notifier-common,
vim, vim,
w3m w3m,
wireless-tools
Provides: Provides:
screen-profiles, screen-profiles,
screen-profiles-extras, screen-profiles-extras,

37
usr/bin/wifi-status Executable file
View file

@ -0,0 +1,37 @@
#!/bin/sh
#
# wifi-status - monitor a wireless network connection
#
# Copyright (C) 2003-2014 Dustin Kirkland <kirkland@ubuntu.com>
#
# Authors:
# Dustin Kirkland <kirkland@ubuntu.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if [ -z "$1" ]; then
dev=$(iwconfig 2>/dev/null | grep '802.11' | tail -n1 | awk '{print $1}')
else
dev="$1"
fi
if [ -z "$TMUX" ]; then
watch -n1 "iwconfig $dev; ifconfig $dev; route -n; echo; (grep $dev: /var/log/syslog | tail -n 10 | sort -r); echo; ping -I $dev -c 1 8.8.8.8"
else
tmux new-window -n wifi-status "watch -c iwconfig $dev \| ccze -A" \; \
split-window -v "watch -c ifconfig $dev \| ccze -A" \; \
split-window -v "watch -c route -n \| ccze -A" \; \
split-window -h "ping -I $dev 8.8.8.8" \; \
split-window -v "watch -c grep $dev: /var/log/syslog \| tail -n 10 \| sort -r \| ccze -A" \; \
select-layout tiled
fi

View file

@ -0,0 +1,42 @@
.TH wifi-status 1 "27 Sep 2010" byobu "byobu"
.SH NAME
wifi-status \- monitor the wireless interface
.SH SYNOPSIS
\fBwifi-status\fP [INTERFACE]
.SH DESCRIPTION
\fBwifi-status\fP is a program that monitors a wireless interface.
This is often useful when trying to associate with an access point.
.SH EXAMPLE
$ wifi-status
Every 1.0s: iwconfig wlan0; ifconfig wlan0
wlan0 IEEE 802.11abgn ESSID:"default"
Mode:Managed Frequency:2.462 GHz Access Point: 00:11:22:33:44:55
Bit Rate=81 Mb/s Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=70/70 Signal level=-35 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
wlan0 Link encap:Ethernet HWaddr 00:11:22:33:44:55
inet addr:10.10.10.103 Bcast:10.9.8.255 Mask:255.255.255.0
inet6 addr: aaaa::bbb:cccc:dddd:eeee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10582 errors:0 dropped:0 overruns:0 frame:0
TX packets:6383 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8243607 (8.2 MB) TX bytes:1077323 (1.0 MB)
.SH SEE ALSO
\fBiwconfig\fP(8)\fP, \fBifconfig\fP(8)
.SH AUTHOR
This manpage and the utility was written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP.