On Mon, Jul 17, 2017 at 09:37:42PM +0200, Guus Sliepen wrote:

> > - wait for all auto interfaces, if there is no auto interface, wait for
> > at least one allow-hotplug interface
> 
> I think that's a very good default heuristic for ifupdown-wait-online.

I also had a wait-online.sh script I made myself lying around. I merged
your functionality with mine. I've not made it depend on a if-up.d
script to signal an interface coming online, I'll optimize it later.

The script supports several ways to wait:

- Wait for ifup to bring something up (either a specific interface, or
  if none is specified, either all auto interfaces, or one hotplug interface,
  as discussed).
- Wait for a route to appear to a certain address, or a default gateway.
- Wait for a host to respond to ping packets.
- Don't wait.

You'll have to systemctl enable ifupdown-wait-online.service manually
for now, but if it works OK then I'll turn it on by default.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to