This question already has an answer here:
I have a .bashrc file and inside it I have added the line
~/bin/startup2.sh. This works fine if I open a terminal after startup. But when I open a terminal on reboot like this, I get an error that looks like it is related to networking.
google.auth.exceptions.TransportError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
Is there a way to delay the execution of this script until I get networking?
This is using a Raspberry Pi 3 B