Gentoo should automatically use ifplugd for all interfaces that are configured via DHCP. Static interfaces on the other hand should work like they currently do. Possible implementation: When net.* start() detects that the interface is configured to use DHCP, do not attempt to bring it up, but just tell ifplugd to manage it. Similarly, on stop(), tell ifplugd to shut it down and quit monitoring it. It should probably be configurable on per-interface (or per-alias) basis whether to use ifplugd-DHCP or only-on-boot-manual-DHCP on it. In either case, this configuration should be in iface_*, not in separate ifplugd config. Could be iface_eth0="manual dhcp" to enable this mode and just "dhcp" for ifplugd-managed mode. Questions: Is there any reason to use ifplugd for statically configured interfaces too?
This sounds like a good idea, the script just have to make sure it does not start ifplugd for wireless cards eth. , since they are managed by cardmgr.
Just a heads up to say that baselayout-1.12.0_pre8 has support for netplug which is like ifplugd. netplug has no configuration requirements and only works with wired ethernet that supports netlink events with valid MAC addresses so it should work Just Like That :) If that proves to work, then I can look at doing a similar thing for ifplugd
baselayout-1.12.0_pre9 will ship with built in ifplugd support. Hopefully the new init script in ifplugd-0.28-r2 will stop any conflicts :)
baselayout-1.12.0_pre9 has ifplugd support ifplugd-0.28-r2 and higher should not cause any conflicts provded /etc/init.d/ifplugd is updated with etc-update!