mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* bin/ip-address: hostname -i doesn't always work, use ifconfig
instead, LP: #376080 Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
4851f82962
commit
50a28abde9
2 changed files with 9 additions and 2 deletions
|
@ -28,4 +28,7 @@ space=
|
|||
grep -qs "^hostname=1$" "$HOME/.$PKG/status" && space=" "
|
||||
grep -qs "^whoami=1$" "$HOME/.$PKG/status" && space=" "
|
||||
|
||||
printf "%s\005{+b }%s\005{-}" "$space" $(hostname -i 2>/dev/null)
|
||||
interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
|
||||
ipaddr=`/sbin/ifconfig "$interface" | grep "inet addr:" | sed "s/^.*inet addr://" | sed "s/ .*$//"`
|
||||
|
||||
printf "%s\005{+b }%s\005{-}" "$space" "$ipaddr"
|
||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -8,12 +8,16 @@ byobu (2.4) unreleased; urgency=low
|
|||
* bin/release: try to grab both distro and version from /etc/issue
|
||||
if that's what we're forced to use
|
||||
* bin/updates-available: improve counting of yum updates available
|
||||
* bin/ip-address,whoami,release,hostname: use +b rather than =b,
|
||||
colors look bad on the light* profiles
|
||||
* bin/ip-address: hostname -i doesn't always work, use ifconfig
|
||||
instead, LP: #376080
|
||||
* debian/control: suggest vim, for better handling of status details
|
||||
|
||||
[ David Duffey ]
|
||||
* rpm/byobu.spec: initial specfile for RH packaging
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 11 May 2009 22:43:51 -0500
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 13 May 2009 23:08:39 -0500
|
||||
|
||||
byobu (2.3-0ubuntu1) karmic; urgency=low
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue