network/dhclient: exit arping immediatly, if we get an answer

Harald Hoyer 2015-08-18 12:41:12 +02:00
parent 942d60d8af
commit d6bfa7052a
1 changed files with 1 additions and 1 deletions

View File

@ -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