dhclient-script: one more fix for #1129500

This commit is contained in:
Jiri Popelka 2014-08-14 14:53:19 +02:00
parent f3db66f57e
commit 69ed5a2afd
2 changed files with 8 additions and 4 deletions

View File

@ -711,9 +711,10 @@ case "${reason}" in
# we need a link-local address to be ready (not tentative) # we need a link-local address to be ready (not tentative)
for i in $(seq 50); do for i in $(seq 50); do
# tentative flag == DAD is still not complete linklocal=$(ip -6 addr show dev ${interface} scope link)
tentative=$(ip -6 addr show dev ${interface} scope link | grep tentative) # tentative flag means DAD is still not complete
[[ -z "${tentative}" ]] && exit_with_hooks 0 tentative=$(echo "${linklocal}" | grep tentative)
[[ -n "${linklocal}" && -z "${tentative}" ]] && exit_with_hooks 0
sleep 0.1 sleep 0.1
done done

View File

@ -18,7 +18,7 @@
Summary: Dynamic host configuration protocol software Summary: Dynamic host configuration protocol software
Name: dhcp Name: dhcp
Version: 4.3.1 Version: 4.3.1
Release: 2%{?dist} Release: 3%{?dist}
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to # NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
# dcantrell maintaining the package) made incorrect use of the epoch and # dcantrell maintaining the package) made incorrect use of the epoch and
# that's why it is at 12 now. It should have never been used, but it was. # that's why it is at 12 now. It should have never been used, but it was.
@ -650,6 +650,9 @@ done
%doc doc/html/ %doc doc/html/
%changelog %changelog
* Thu Aug 14 2014 Jiri Popelka <jpopelka@redhat.com> - 12:4.3.1-3
- dhclient-script: one more fix for #1129500
* Thu Aug 14 2014 Jiri Popelka <jpopelka@redhat.com> - 12:4.3.1-2 * Thu Aug 14 2014 Jiri Popelka <jpopelka@redhat.com> - 12:4.3.1-2
- dhclient-script: PREINIT6: make sure link-local address is available (#1129500) - dhclient-script: PREINIT6: make sure link-local address is available (#1129500)