Skip to content

Instantly share code, notes, and snippets.

@1stvamp
Last active October 10, 2019 11:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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
#!/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