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

Re: Bug#407460: USB ethernet interface renamed after installation on NSLU2 which causes the system to be inaccessible



* Gordon Farquharson <gordonfarquharson@gmail.com> [2007-02-25 23:19]:
> +                               if [ -h /lib/firmware/NPE-B ]; then
> +                                       INTERFACE=eth0
> +                               else
> +                                       INTERFACE=eth1
> +                               fi

I'm happy to make this change if Frans thinks that it's not too late
to do it.  (FWIW, I can guarantee that changes proposed by Gordon are
fully tested.)

I think -e is better than -h since (afaik) it follows symlinks.

> BTW, if we adopt this workaround, we will need to change
> /usr/share/initramfs-tools/hooks/nslu2
> which complains about the missing NPE-B microcode if the NPE driver

Well, yeah, that would be nice but imho not strictly necessary because
it's only a warning.  It might confuse some users but to be honest the
majority of users will run the unofficial image that has the microcode
included anyway.

> The assumption (and therefore the possible problem) with this
> workaround is that the built-in interface will always be named eth0.
> I have found this to be the case with an asix based USB to Ethernet
> adapter. It would be reassuring to test this assumption with an
> different adapter.

I'm pretty sure I saw the same with pegasus, but I'm away from my box
right now.
-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: