You can run in background something like this:
# tail -1f /var/log/messages | grep "link becomes ready" | awk '{system("/sbin/udhcpc")}'
It cyclically waits for "link becomes ready" appears in /var/log/messages and then runs udhcpc program.
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------