Guest User

Untitled

a guest
Feb 18th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/bash
  2. while [ "true" ]
  3. do
  4. VPNCON=$(nmcli con status)
  5. if [[ $VPNCON != *PIA - US East VPN ]]; then
  6. echo "Disconnected, trying to reconnect..."
  7. (sleep 1s && nmcli con up uuid 05d4a3a8-b054-4ede-b397-dd5d607922d8)
  8. else
  9. echo "Already connected !"
  10. fi
  11. sleep 30
  12. done
Advertisement
Add Comment
Please, Sign In to add comment