I have a CPE with a script that runs when powered on. Ether1 is a DHCP client that gets an IP-address from a DHCP server.
What I want to accomplish is that the script only continues when it can reach the internet on ether1.
After being able to connect to the internet, the CPE needs to download a file from an external server.
How can i automate this?