Skip to content

Instantly share code, notes, and snippets.

@mistificator
Created September 11, 2019 10:21
Show Gist options
  • Save mistificator/e9bca9fc1ba5790d1bc9e4a0bf4b3c12 to your computer and use it in GitHub Desktop.
Save mistificator/e9bca9fc1ba5790d1bc9e4a0bf4b3c12 to your computer and use it in GitHub Desktop.
#!/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