Fix BOUND6/RENEW6/REBIND6 in dhclient-script.
This commit is contained in:
parent
b112ec7432
commit
b0cb903be6
@ -497,7 +497,7 @@ add_ipv6_addr_with_DAD() {
|
|||||||
dh6config() {
|
dh6config() {
|
||||||
case "${reason}" in
|
case "${reason}" in
|
||||||
BOUND6)
|
BOUND6)
|
||||||
if [ -z "${new_ip6_address}" ] &&
|
if [ -z "${new_ip6_address}" ] ||
|
||||||
[ -z "${new_ip6_prefixlen}" ]; then
|
[ -z "${new_ip6_prefixlen}" ]; then
|
||||||
exit_with_hooks 2
|
exit_with_hooks 2
|
||||||
fi
|
fi
|
||||||
@ -508,9 +508,12 @@ dh6config() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
RENEW6|REBIND6)
|
RENEW6|REBIND6)
|
||||||
if [ -n "${new_ip6_prefixlen}" ] &&
|
if [ -z "${new_ip6_address}" ] ||
|
||||||
[ -n "${new_ip6_address}" ] &&
|
[ -z "${new_ip6_prefixlen}" ]; then
|
||||||
[ ! "${new_ip6_address}" = "${old_ip6_address}" ]; then
|
exit_with_hooks 2
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! "${new_ip6_address}" = "${old_ip6_address}" ]; then
|
||||||
add_ipv6_addr_with_DAD
|
add_ipv6_addr_with_DAD
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user