mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* 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:
parent
6549d740c5
commit
2ff5d707f4
3 changed files with 18 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
4
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue