Fix the wrong device registered in netstatus applet, and automatically set it to the first working network connection.
Bug #42100 reported by
Joel Bryan Juliano
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-netstatus |
Won't Fix
|
Medium
|
|||
gnome-netstatus (Ubuntu) |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
On machines that have multiple NIC's, sometimes network applet displays the wrong information.
This fixes the netstatus applet to use the correct interfaces.
Interfaces can be eth, or sit.
I include a script with this bug:
#!/bin/sh
# Find the first working network connection and
# configures it in netstatus applet.
#
# Joel Bryan T. Juliano <email address hidden>
link="`
| sed '/^[a-zA-
sed -ne 's/\([a-
/usr/bin/
Changed in ubuntu-meta: | |
status: | Unconfirmed → Rejected |
Changed in gnome-netstatus: | |
assignee: | nobody → desktop-bugs |
Changed in gnome-netstatus: | |
importance: | Medium → Wishlist |
Changed in gnome-netstatus: | |
status: | Unknown → New |
Changed in gnome-netstatus (Ubuntu): | |
status: | Confirmed → Triaged |
assignee: | Ubuntu Desktop Bugs (desktop-bugs) → nobody |
Changed in gnome-netstatus: | |
importance: | Unknown → Medium |
Changed in gnome-netstatus: | |
status: | New → Won't Fix |
no longer affects: | ubuntu-meta (Ubuntu) |
Changed in gnome-netstatus (Ubuntu): | |
status: | Triaged → Won't Fix |
To post a comment you must log in.
I have made a better version, that test if the currently set interface in netstatus applet is really working or not.
#!/bin/sh
# Find the first working network connection and
# configures it.
#
# Joel Bryan T. Juliano <email address hidden>
link="` /sbin/ifconfig | sed -e '/./{H;$!d;}' -e 'x;/[a- zA-Z][a- zA-Z][a- zA-Z]/! d;/RUNNING/ !d;' \ Z][a-zA- Z][a-zA- Z]/!d' | sed -n '/^.\{15\}/p' | \ zA-Z][a- zA-Z][a- zA-Z][[ :digit: ]]\).*/ \1/p'`"
| sed '/^[a-zA-
sed -ne 's/\([a-
current_ link="` /usr/bin/ gconftool- 2 -g /apps/panel/ applets/ applet_ 0/prefs/ interface` "
if [ ! "$link" = "$current_link" ]
then
test_current_ link="` /sbin/ifconfig | sed -e '/./{H;$!d;}' -e 'x;/'$current_ link'/! d;/RUNNING/ !d;' \ Z][a-zA- Z][a-zA- Z]/!d' | sed -n '/^.\{15\}/p' | \ zA-Z][a- zA-Z][a- zA-Z][[ :digit: ]]\).*/ \1/p'`"
| sed '/^[a-zA-
sed -ne 's/\([a-
if [ -s $test_current_link ] gconftool- 2 -t string -s /apps/panel/ applets/ applet_ 0/prefs/ interface "$link"
then
/usr/bin/
fi
exit 0;
fi