Fix dadfailed condition never reached
This script wait until interface successfully pass Duplicate Address Detection but if a duplicated address is found, it will never reach the failed condition and stop with the Time Out message. Moving this block inside the loop, will fix this and save some waiting time until loop time out