[Sugar-devel] [PATCH sugar] about my computer, check wlan0 before eth0
James Cameron
quozl at laptop.org
Sun Nov 28 18:25:36 EST 2010
On Sat, Nov 27, 2010 at 09:28:49PM +0100, Sascha Silbe wrote:
> Excerpts from James Cameron's message of Thu Nov 25 00:14:34 +0100 2010:
>
> > + for netdev in ['wlan0', 'eth0']:
>
> I don't like that we're hardcoding interface names. E.g. on my XO-1.5,
> the interface is called wlan3 (because the installation was done on a
> different machine and Debian uses a permanent MAC address -> device name
> mapping). I also seem to remember that not all WLAN drivers use the
> wlan%d convention (or eth%d), though that might have been fixed by now.
>
> NetworkManager exports a list of network devices. While it doesn't
> provide access to the firmware version (only driver name), we can at
> least use it for enumerating all wireless interfaces.
Apart from your desire for me to do more work to create a perfect
solution, was the patch that I proposed worthy of being merged if only
to incrementally improve the existing code?
--
James Cameron
http://quozl.linux.org.au/
More information about the Sugar-devel
mailing list