[SM-Discuss] udev module loading order

Juuso Alasuutari iuso at sourcemage.org
Fri Apr 14 06:23:53 EDT 2006


On Friday 14 April 2006 12:42, Arwed von Merkatz wrote:
> On Fri, Apr 14, 2006 at 05:01:14AM +0300, Juuso Alasuutari wrote:
<snip>
> > The tricky part is extracting the required info (MAC addresses). It can
> > be done with ifconfig, but first we have to make sure that the drivers
> > are _loaded_ in the first place. Otherwise there's not much to read from.
>
> Using ifconfig sounds a lot harder than just asking sysfs for it. The
> driver still has to be loaded first, but then it's just a matter of 'cat
> /sys/class/net/eth0/address'

You're right. First I thought of using udevinfo, but since that's optional for 
users I figured ifconfig would do. Didn't remember that udevinfo simply 
reads /sys. :)

Juuso



More information about the SM-Discuss mailing list