- Make dhclient-script add IPv6 address to interface (#531997)
This commit is contained in:
parent
1e876e9350
commit
9726e0ff9f
@ -405,16 +405,14 @@ dhconfig() {
|
|||||||
dh6config() {
|
dh6config() {
|
||||||
case "${reason}" in
|
case "${reason}" in
|
||||||
BOUND6)
|
BOUND6)
|
||||||
if [ -n "${new_ip6_address}" ] ||
|
if [ -z "${new_ip6_address}" ] &&
|
||||||
[ -n "${new_ip6_prefixlen}" ]; then
|
[ -z "${new_ip6_prefixlen}" ]; then
|
||||||
exit_with_hooks 2
|
exit_with_hooks 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ip -f inet6 addr add ${new_ip6_address}/${new_ip6_prefixlen} \
|
ip -f inet6 addr add ${new_ip6_address}/${new_ip6_prefixlen} \
|
||||||
dev ${interface} scope global
|
dev ${interface} scope global
|
||||||
make_resolv_conf
|
make_resolv_conf
|
||||||
|
|
||||||
break
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
RENEW6|REBIND6)
|
RENEW6|REBIND6)
|
||||||
@ -422,19 +420,15 @@ dh6config() {
|
|||||||
[ ! "${new_dhcp6_domain_search}" = "${old_dhcp6_domain_search}" ]; then
|
[ ! "${new_dhcp6_domain_search}" = "${old_dhcp6_domain_search}" ]; then
|
||||||
make_resolv_conf
|
make_resolv_conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
break
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
DEPREF6)
|
DEPREF6)
|
||||||
if [ -n "${new_ip6_prefixlen}" ]; then
|
if [ -z "${new_ip6_prefixlen}" ]; then
|
||||||
exit_with_hooks 2
|
exit_with_hooks 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ip -f inet6 addr change ${new_ip6_address}/${new_ip6_prefixlen} \
|
ip -f inet6 addr change ${new_ip6_address}/${new_ip6_prefixlen} \
|
||||||
dev ${interface} scope global preferred_lft 0
|
dev ${interface} scope global preferred_lft 0
|
||||||
|
|
||||||
break
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
Summary: Dynamic host configuration protocol software
|
Summary: Dynamic host configuration protocol software
|
||||||
Name: dhcp
|
Name: dhcp
|
||||||
Version: %{basever}p1
|
Version: %{basever}p1
|
||||||
Release: 12%{?dist}
|
Release: 13%{?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.
|
||||||
@ -481,6 +481,9 @@ fi
|
|||||||
%attr(0644,root,root) %{_mandir}/man3/omapi.3.gz
|
%attr(0644,root,root) %{_mandir}/man3/omapi.3.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2009 Jiri Popelka <jpopelka@redhat.com> - 12:4.1.0p1-13
|
||||||
|
- Make dhclient-script add IPv6 address to interface (#531997)
|
||||||
|
|
||||||
* Tue Oct 13 2009 Jiri Popelka <jpopelka@redhat.com> - 12:4.1.0p1-12
|
* Tue Oct 13 2009 Jiri Popelka <jpopelka@redhat.com> - 12:4.1.0p1-12
|
||||||
- Fix 56dhclient so network comes back after suspend/hibernate (#527641)
|
- Fix 56dhclient so network comes back after suspend/hibernate (#527641)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user