-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 10/09/12 04:05 PM, David Leverton wrote: > 4) dhcpcd: not sure when it was introduced, but current dhcpcd can > detect when the link goes up and down, and request/renew its lease > when it comes up. The only wrinkle that I can see here is that, if > no ifplugd/netplug/wpa_supplicant is configured, OpenRC waits for > it to receive a lease when starting the interface, rather than > allowing it to background itself. > > So for dhcpcd, it might be enough to just make OpenRC aware that > it doesn't need to wait for a lease when starting the interface.
According to bug 253925 , this would only work for certain hardware (ie, those that support the IFF_RUNNING method); ifplugd suppots three methods (IFF_RUNNING, ethtool-style, mii-style), and netplug -seems- to do it by connecting at the netlink level to the interface and just listening for traffic (as far as I can tell). So for link detection, both ifplugd and netplug would be better than attempting to just use dhcpcd, imo (not to mention the non-dhcp-based configs).. (plus, since this is all for oldnet only, i would expect dhcpcd would be a bit of an issue to integrate so that it would be able to move net.* from inactive to started state and then exclude it from being run a second time to configure the now-up iface..) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iF4EAREIAAYFAlBPOVcACgkQ2ugaI38ACPBevgD+LN73S/g6aQ8D2sR4rrIjNkSd 3eP1KgcGoEFeU+yPFIcA/RyC/fShiEaLiATnxN0ybymqspMQQcSrLj4GxeMqnPfs =jpCo -----END PGP SIGNATURE-----