Hi nygauk
I don't like waiting, ...
If your ffmpeg command relies on the network, you have no choice.
That snippet will minimize the wait time. Whether you set the wait
time to 60 or 600 seconds will make no difference. The loop will
exit as soon as the network is up.
By placing it at the end of bootlocal.sh, it won't delay any other
commands being run from there.
Finally, bootlocal.sh runs in the background. So it won't block
anything else from running because nothing is waiting for it
to finish running.