Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] udev module loading order

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Juuso Alasuutari <iuso AT sourcemage.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] udev module loading order
  • Date: Fri, 14 Apr 2006 13:23:53 +0300

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




Archive powered by MHonArc 2.6.24.

Top of Page