mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* usr/lib/byobu/wifi_quality:
- clear wifi status indicator when there is no wifi connection
This commit is contained in:
parent
acd2681e60
commit
9afa191ae5
2 changed files with 6 additions and 2 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -2,6 +2,8 @@ byobu (5.42) unreleased; urgency=low
|
||||||
|
|
||||||
* usr/bin/Makefile.am:
|
* usr/bin/Makefile.am:
|
||||||
- install byobu-ulevel
|
- install byobu-ulevel
|
||||||
|
* usr/lib/byobu/wifi_quality:
|
||||||
|
- clear wifi status indicator when there is no wifi connection
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 09 May 2013 09:06:07 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 09 May 2013 09:06:07 -0500
|
||||||
|
|
||||||
|
|
|
@ -40,8 +40,10 @@ __wifi_quality() {
|
||||||
if [ -z "$quality" ] || [ "$quality" = "0" ]; then
|
if [ -z "$quality" ] || [ "$quality" = "0" ]; then
|
||||||
quality="0"
|
quality="0"
|
||||||
fi
|
fi
|
||||||
[ -n "$quality" ] || return
|
if [ "$bitrate" = "0" ] || [ "$quality" = "0" ] || [ -z "$bitrate" ] || [ -z "$quality"]; then
|
||||||
[ "$quality" = "0" ] && return
|
rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/wifi_quality"*
|
||||||
|
return
|
||||||
|
fi
|
||||||
printf "${ICON_WIFI}"; color b C k; printf "%s" "$bitrate"; color -; color C k; printf "%s" "$ICON_MBPS"; color -; color b C k; printf "%s" "$quality"; color -; color C k; printf "%s" "$PCT"; color --
|
printf "${ICON_WIFI}"; color b C k; printf "%s" "$bitrate"; color -; color C k; printf "%s" "$ICON_MBPS"; color -; color b C k; printf "%s" "$quality"; color -; color C k; printf "%s" "$PCT"; color --
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue