Remove states before removing the old address, or the file will be gone and the code to kill the states won't ever run.

This commit is contained in:
jim-p 2012-09-26 08:47:40 -04:00
parent 767cf960f4
commit 80c043fa48

View File

@ -327,8 +327,8 @@ BOUND|RENEW|REBIND|REBOOT)
changes="yes"
fi
if [ "$old_ip_address" != "$new_ip_address" ]; then
delete_old_address
delete_old_states
delete_old_address
delete_old_routes
changes="yes"
fi
@ -355,8 +355,8 @@ BOUND|RENEW|REBIND|REBOOT)
EXPIRE|FAIL)
delete_old_alias
if [ -n "$old_ip_address" ]; then
delete_old_address
delete_old_states
delete_old_address
delete_old_routes
fi
;;