]> 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>
Wed, 11 Nov 2015 15:15:07 +0000 (16:15 +0100)
(cherry picked from commit d6bfa7052a620ebdd37f78655462120871c49ebd)

modules.d/40network/dhclient-script.sh

index 1d891cd078085f1a436a09ad49df0541aa62652c..4e2090dba393091ecbc780477309ccd4c2ecd50f 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