Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/python3
- import subprocess
- from os import system as system_call
- import time
- print("autoReconnect running")
- while(True):
- a = system_call("ping -c1 -w1 8.8.8.8 > /dev/null")
- if a != 0:
- system_call("./reconnect.sh")
- time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement