daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Feb 18th, 2015 200 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top