* bin/network-*: allow monitored network interface overrides in

~/.byobu/network-interface, LP: #386364


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-06-12 12:07:20 -05:00
commit 2ff5d707f4
3 changed files with 18 additions and 4 deletions

View file

@ -20,9 +20,15 @@
PKG="byobu"
cache="/var/run/screen/S-$USER/$PKG.network-down"
interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
unit="kB/s"
# Allow interface overrides in configuration directory
if [ -r "$HOME/.$PKG/network-interface" ]; then
interface=`cat "$HOME/.$PKG/network-interface"`
else
interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
fi
if [ "$1" = "--detail" ]; then
/sbin/ifconfig "$interface" | sed 's/\s*$//'
exit 0

View file

@ -20,10 +20,16 @@
PKG="byobu"
cache="/var/run/screen/S-$USER/$PKG.network-up"
interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
unit="kB/s"
# Allow interface overrides in configuration directory
if [ -r "$HOME/.$PKG/network-interface" ]; then
interface=`cat "$HOME/.$PKG/network-interface"`
else
interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
fi
if [ "$1" = "--detail" ]; then
/sbin/ifconfig "$interface" | sed 's/\s*$//'
exit 0

4
debian/changelog vendored
View file

@ -5,8 +5,10 @@ byobu (2.11) unreleased; urgency=low
ctrl-a-), LP: #386363
* screen-launcher-install, screen-launcher-uninstall: use
.hushlogin to prevent double-printing of motd
* bin/network-*: allow monitored network interface overrides in
~/.byobu/network-interface, LP: #386364
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 12 Jun 2009 12:02:10 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 12 Jun 2009 12:06:40 -0500
byobu (2.10-0ubuntu1) karmic; urgency=low