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 <[EMAIL PROTECTED]>

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

--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to