712866
From d6bfa7052a620ebdd37f78655462120871c49ebd Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Tue, 18 Aug 2015 12:41:12 +0200
712866
Subject: [PATCH] network/dhclient: exit arping immediatly, if we get an answer
712866
712866
---
712866
 modules.d/40network/dhclient-script.sh | 2 +-
712866
 1 file changed, 1 insertion(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/40network/dhclient-script.sh b/modules.d/40network/dhclient-script.sh
5c6c2a
index 12e2869f..18b41000 100755
712866
--- a/modules.d/40network/dhclient-script.sh
712866
+++ b/modules.d/40network/dhclient-script.sh
712866
@@ -117,7 +117,7 @@ case $reason in
712866
             read layer2 < /sys/class/net/$netif/device/layer2
712866
         fi
712866
         if [ "$layer2" != "0" ]; then
712866
-            if ! arping -q -D -c 2 -I $netif $new_ip_address ; then
712866
+            if ! arping -f -q -D -c 2 -I $netif $new_ip_address ; then
712866
                 warn "Duplicate address detected for $new_ip_address while doing dhcp. retrying"
712866
                 exit 1
712866
             fi