Created
September 11, 2019 10:21
-
-
Save mistificator/e9bca9fc1ba5790d1bc9e4a0bf4b3c12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while /bin/true; do | |
if ! [ "$(ping -c 1 $(hostname -i | cut -d\ -f2))" ]; then | |
sudo wicd-cli -zc | |
fi | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment