Matthew Burgess wrote:
> If someone could tell me where to dump the script for
> tcp_window_scaling, I'd appreciate it.  I've currently got it in 
> /etc/dev.d/net/ipv4/tcp_window_scaling.dev but it doesn't get called.

Well... this is odd.  Nothing in dev.d gets called when a module is
loaded that creates a network interface (or at least, not when the
via-rhine module is loaded).  I put a test.dev script (echo $DEVNAME
>>/home/me/logfile) into /etc/dev.d/default/, and it never ran.  Same
if I put it into /etc/dev.d/net/ -- it never ran.

Maybe you need a line in the udev rules file that names the interface
before you can get a dev.d handler to be called?  That'd be annoying if
it's true.

Or maybe udev ignores the hotplug events raised by network interface
drivers?  It shouldn't do that, but I don't know for sure.

I was thinking /etc/dev.d/net/ would work (that's where the hotplug
agent is run from, which is supposed to call ifup -- though I don't have
that working either, since I have no need for it).  My
/var/log/hotplug/events file gets a few entries when I add and remove
the via-rhine driver, and the DEVPATH is /class/net/eth0.  So putting
the script in one of /etc/dev.d/{eth0,net,default} should work.

(That's also a reply to your question about where to look.  udev runs
dev.d scripts based on the devname (the last part of DEVPATH -- "eth0"
in this case), the type (the part of DEVPATH after either /class/ or
/block/ -- "net" in this case), and "default".)

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to