]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/dhclient: exit arping immediatly, if we get an answer
authorHarald Hoyer <harald@redhat.com>
Tue, 18 Aug 2015 10:41:12 +0000 (12:41 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 18 Aug 2015 10:41:12 +0000 (12:41 +0200)
modules.d/40network/dhclient-script.sh

index 12e2869f0aa69a220024dd971ad9f8e028a0ff11..18b41000f59f77d32c03bd904f47596c31e85407 100755 (executable)
@@ -117,7 +117,7 @@ case $reason in
             read layer2 < /sys/class/net/$netif/device/layer2
         fi
         if [ "$layer2" != "0" ]; then
-            if ! arping -q -D -c 2 -I $netif $new_ip_address ; then
+            if ! arping -f -q -D -c 2 -I $netif $new_ip_address ; then
                 warn "Duplicate address detected for $new_ip_address while doing dhcp. retrying"
                 exit 1
             fi