diff --git a/dhclient-script b/dhclient-script index 90caeac..cf904dd 100755 --- a/dhclient-script +++ b/dhclient-script @@ -405,16 +405,14 @@ dhconfig() { dh6config() { case "${reason}" in BOUND6) - if [ -n "${new_ip6_address}" ] || - [ -n "${new_ip6_prefixlen}" ]; then + if [ -z "${new_ip6_address}" ] && + [ -z "${new_ip6_prefixlen}" ]; then exit_with_hooks 2 fi ip -f inet6 addr add ${new_ip6_address}/${new_ip6_prefixlen} \ dev ${interface} scope global make_resolv_conf - - break ;; RENEW6|REBIND6) @@ -422,19 +420,15 @@ dh6config() { [ ! "${new_dhcp6_domain_search}" = "${old_dhcp6_domain_search}" ]; then make_resolv_conf fi - - break ;; DEPREF6) - if [ -n "${new_ip6_prefixlen}" ]; then + if [ -z "${new_ip6_prefixlen}" ]; then exit_with_hooks 2 fi ip -f inet6 addr change ${new_ip6_address}/${new_ip6_prefixlen} \ dev ${interface} scope global preferred_lft 0 - - break ;; esac diff --git a/dhcp.spec b/dhcp.spec index fe5ea6f..c1bb0c6 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -13,7 +13,7 @@ Summary: Dynamic host configuration protocol software Name: dhcp Version: %{basever}p1 -Release: 12%{?dist} +Release: 13%{?dist} # NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to # 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. @@ -481,6 +481,9 @@ fi %attr(0644,root,root) %{_mandir}/man3/omapi.3.gz %changelog +* Fri Oct 30 2009 Jiri Popelka - 12:4.1.0p1-13 +- Make dhclient-script add IPv6 address to interface (#531997) + * Tue Oct 13 2009 Jiri Popelka - 12:4.1.0p1-12 - Fix 56dhclient so network comes back after suspend/hibernate (#527641)