Comment 4 for bug 1890900

Revision history for this message
Felipe Reyes (freyes) wrote :

> #!/bin/bash -eu
> ip a | grep 192.168.100.22 || exit 0
> ping -c 1 -w 1 10.5.150.1 1>/dev/null || exit 1

This would require to increasea the deadline (-w 1) too, since ping will exit when the number of pings is completed or the deadline time reaches, whatever happens first.

Since the current command assumes that a single ping should last less than a second, I think we shouold be able to safely assume that 1 seconds should be the maximum to wait, hence we should use the same argument for ping counts and deadline.