- #!/bin/bash
- while [ "true" ]
- do
- VPNCON=$(nmcli con status)
- if [[ $VPNCON != *PIA - US East VPN ]]; then
- echo "Disconnected, trying to reconnect..."
- (sleep 1s && nmcli con up uuid 05d4a3a8-b054-4ede-b397-dd5d607922d8)
- else
- echo "Already connected !"
- fi
- sleep 30
- done
SHARE
TWEET
Untitled
a guest
Feb 18th, 2015
200
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
