Skip to content

Instantly share code, notes, and snippets.

View amiraliakbari's full-sized avatar

AmirAli Akbari amiraliakbari

View GitHub Profile
@amiraliakbari
amiraliakbari / upvpn.sh
Last active August 29, 2015 14:09 — forked from mjnaderi/upvpn.sh
#!/bin/bash
VPN="Sharif ID"
trap "exit 0" SIGINT SIGTERM
while true; do
if ! nmcli con status | grep "$VPN" &>/dev/null; then
echo "[`date -R`] Trying to re-connect..."
nmcli -p con up id "$VPN"