Last active
October 10, 2019 11:40
-
-
Save 1stvamp/f120533a41906b4c789c06c43b9c6d05 to your computer and use it in GitHub Desktop.
Script to checked the connected status output from the gotunl client for the pritunl vpn daemon
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
#!/usr/bin/env bash | |
while ! [[ $(gotunl -l) == *Connected* ]] | |
do | |
echo -n . | |
sleep 1 | |
done | |
echo -e '\e[32mVPN connected!\e[0m' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment