mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
* usr/bin/wifi-status:
- ping the router, too, to verify at least local connectivity
This commit is contained in:
parent
f3a674a303
commit
27a6abe8cf
2 changed files with 6 additions and 2 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
|||
byobu (5.113) unreleased; urgency=medium
|
||||
|
||||
* UNRELEASED
|
||||
* usr/bin/wifi-status:
|
||||
- ping the router, too, to verify at least local connectivity
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 16 Sep 2016 10:13:08 -0500
|
||||
|
||||
|
|
|
@ -27,14 +27,17 @@ else
|
|||
dev="$1"
|
||||
fi
|
||||
|
||||
router=$(route -n | grep "^0.0.0.0" | awk '{print $2}')
|
||||
|
||||
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 -t wifi-status -v "watch -c ifconfig $dev \| ccze -A" \; \
|
||||
split-window -t wifi-status -v "watch -c route -n \| ccze -A" \; \
|
||||
split-window -t wifi-status -h "ping -I $dev 8.8.8.8" \; \
|
||||
split-window -t wifi-status -h "ping -I $dev $router" \; \
|
||||
split-window -t wifi-status -v "watch -c grep $dev: /var/log/syslog \| tail -n 10 \| sort -r \| ccze -A" \; \
|
||||
split-window -t wifi-status -h "ping -I $dev 8.8.8.8" \; \
|
||||
select-layout -t wifi-status tiled
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue