[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning



On Wed, 29 Aug 2012 13:47:00 +0200, Vincent Lefevre wrote:

> > > There's also usbnet, which is used when I connect my Nokia N900 to
> > > my laptop. There must also be a fixed setup, but I haven't found a
> > > solution to recognize my N900 with ifupdown (the MAC address changes
> > > too often).
> > http://wiki.openmoko.org/wiki/Plug-and-Play_USB_Networking
> > https://bugzilla.gnome.org/show_bug.cgi?id=675973
> I don't see how the NM script can recognize which one is connected.
> If this is by comparing the MAC address, then this won't work with
> the N900: as I've said, the MAC address of the N900 changes too
> often.

I'm using a similar setup plus udev to distinguish between the
network devices of my openmoko and my n900:

from /etc/network/interfaces:

# n900
allow-hotplug n900
iface n900 inet static
        address ...

# freerunner
allow-hotplug openmoko
iface openmoko inet static
        address ...

from a custom udev rule:

# n900
SUBSYSTEM=="net", ACTION=="add", DEVPATH=="*/net/usb[0-9]", ATTRS{idVendor}=="0421", ATTRS{idProduct}=="01c8", ATTRS{manufacturer}=="Nokia", ATTRS{product}=="N900 (PC-Suite Mode)", NAME="n900"

# freerunner
SUBSYSTEM=="net", ACTION=="add", ATTRS{idVendor}=="0525", ATTRS{idProduct}=="a4a2", ATTRS{product}=="RNDIS/Ethernet Gadget", NAME="openmoko"


Cheers,
gregor
 
-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: U2: If God Would Send His Angels

Attachment: signature.asc
Description: Digital signature


Reply to: