def check_internet_on(secrets_file_path):
while True:<EOL><INDENT>if internet_on() is True and not os.path.exists(secrets_file_path):<EOL><INDENT>break<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>")<EOL>time.sleep(<NUM_LIT:10>)<EOL><DEDENT><DEDENT>return True<EOL>
If internet on and USB unplugged, returns true. Else, continues to wait...