mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* bin/wifi-quality, bin/network-up, bin/network-down: must use /sbin
in iwconfig and ifconfig paths Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
d4a33e8037
commit
a7203a8060
4 changed files with 8 additions and 7 deletions
|
@ -24,7 +24,7 @@ interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
|
|||
unit="kB/s"
|
||||
|
||||
if [ "$1" = "--detail" ]; then
|
||||
ifconfig "$interface" | sed 's/\s*$//'
|
||||
/sbin/ifconfig "$interface" | sed 's/\s*$//'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
|
|||
unit="kB/s"
|
||||
|
||||
if [ "$1" = "--detail" ]; then
|
||||
ifconfig "$interface" | sed 's/\s*$//'
|
||||
/sbin/ifconfig "$interface" | sed 's/\s*$//'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -20,11 +20,11 @@
|
|||
interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
|
||||
|
||||
if [ "$1" = "--detail" ]; then
|
||||
iwconfig 2>/dev/null
|
||||
/sbin/iwconfig 2>/dev/null
|
||||
exit 0
|
||||
fi
|
||||
|
||||
bitrate=`iwconfig "$interface" 2>/dev/null | grep "Bit Rate." | sed "s/^.*Bit Rate.//" | sed "s/ .*$//g"`
|
||||
bitrate=`/sbin/iwconfig "$interface" 2>/dev/null | grep "Bit Rate." | sed "s/^.*Bit Rate.//" | sed "s/ .*$//g"`
|
||||
[ -z "$bitrate" ] && bitrate="0"
|
||||
quality=`iwconfig "$interface" 2>/dev/null | grep "Link Quality=" | sed "s/^.*Link Quality=//" | sed "s/ .*$//g"`
|
||||
quality=`/sbin/iwconfig "$interface" 2>/dev/null | grep "Link Quality=" | sed "s/^.*Link Quality=//" | sed "s/ .*$//g"`
|
||||
echo "$bitrate" "$quality" | awk '{printf "\005{=b Ck}%s\005{-}\005{= Ck}Mb/s,\005{-}\005{=b Ck}%.0f\005{-}\005{= Ck}%%\005{-} ", $1, $2}'
|
||||
|
|
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -1,8 +1,9 @@
|
|||
byobu (2.9) unreleased; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
* bin/wifi-quality, bin/network-up, bin/network-down: must use /sbin
|
||||
in iwconfig and ifconfig paths
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 01 Jun 2009 23:28:57 -0500
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 05 Jun 2009 09:26:03 -0500
|
||||
|
||||
byobu (2.8-0ubuntu1) karmic; urgency=low
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue