network script broken for vlan devices
Bug #509278 reported by
Michael Onnen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
Low
|
Dustin Kirkland | ||
byobu (Ubuntu) |
Fix Released
|
Low
|
Dustin Kirkland |
Bug Description
network script shows 0kB/s all the time for vlan devices (and probably for any network device that's longer than 6 characters).
offending line(s) in /usr/lib/
x2=`grep -m1 "\W$interface:" /proc/net/dev | sed "s/^.*://" | awk '{print $9}'`
\W matches a non-word character before the interface name. For device names longer than 6 chars there isn't any.
$ grep -m1 "\Wvlan1000:" /proc/net/dev
Maybe match the word boundary if you must:
$ grep -m1 "\bvlan1000:" /proc/net/dev
vlan1000:
Changed in byobu: | |
status: | New → Fix Committed |
importance: | Undecided → Low |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in byobu (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → Low |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This bug was fixed in the package byobu - 2.56-0ubuntu1
---------------
byobu (2.56-0ubuntu1) lucid; urgency=low
* debian/control: drop byobu-extras empty package byobu-launcher: fix recent regression, do exec byobu by default, disable- exec exists, LP: #519018 byobu/network: improve regex of the interface matching, which
* usr/bin/
but allow for not exec'ing if ~/.byobu/
* usr/lib/
was broken for device names >6 chars, LP: #509278
-- Dustin Kirkland <email address hidden> Sat, 06 Feb 2010 22:10:52 -0600