[Bug 42100] Fix the wrong device registered in netstatus applet, and automatically set it to the first working network connection.

joelbryan joelbryan.juliano at gmail.com
Mon May 8 19:02:02 UTC 2006


Public bug reported:

Affects: gnome-netstatus (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed


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 <joelbryan.juliano at gmail.com>

link="`/sbin/ifconfig | sed -e '/./{H;$!d;}' -e 'x;/[a-zA-Z][a-zA-Z][a-zA-Z]/!d;/RUNNING/!d;' \
       | sed '/^[a-zA-Z][a-zA-Z][a-zA-Z]/!d' | sed -n '/^.\{15\}/p' | \
       sed -ne 's/\([a-zA-Z][a-zA-Z][a-zA-Z][[:digit:]]\).*/\1/p'`"

/usr/bin/gconftool-2 -t string -s
/apps/panel/applets/applet_0/prefs/interface "$link"

-- 
Fix the wrong device registered in netstatus applet, and automatically set it to the first working network connection.
https://launchpad.net/bugs/42100




More information about the desktop-bugs mailing list