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

Re: How to get rid of sungem at boot time?

On Mon, 2005-10-17 at 08:54 +1000, Benjamin Herrenschmidt wrote:
> > I've done tests this afternoon, and what I found is that the devices
> > change that the system "sees" from one reboot to another. Specifically
> > it is this device on a Titanium IV that the system knows about in one
> > instance, that it does not know about any more at another reboot:
> > 

> The solution would be to able to specify interfaces by MAC or position
> in sysfs rather than ethX name in /etc/network/interfaces... Volunteer
> to fix those scripts ?

The sysfs approach works for me.  I have the file
"/etc/udev/local.rules" and a link to it in "/etc/udev/rules.d"

# /etc/udev/local.rules
# name the ethernet devices clearly
# Help provided by http://www.reactivated.net/udevrules.php
# To use make a simlink to /etc/udev/rules.d

KERNEL="eth*", SYSFS{address}="00:30:65:20:89:6d", NAME="airport"
KERNEL="eth*", SYSFS{address}="00:03:93:9d:ff:92", NAME="sungem"
#KERNEL="eth*", SYSFS{address}="XXXXXXXXXXXXXXXX", NAME="pcmcia"
Looks like I never got around to finishing it for my pcmcia card and
firewire port.

It's works nicely for me.  I don't use ethX anymore
In /etc/network/interfaces I use "iface airport inet dhcp"
or "ifup sungem"

This link discusses how to do it.


Reply to: