This commit is contained in:
Michael Zhang 2020-11-21 04:19:17 -06:00
parent d38b1d46f7
commit 1874098311
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B

View file

@ -13,10 +13,9 @@ ACTIVE=`nmcli con show --active | grep "$VPN"`
if [ -z "$ACTIVE" ]
then
nmcli con up id "$VPN"
notify-send "connected to $VPN"
else
nmcli con down id "$VPN"
notify-send "disconnected from $VPN"
notify-send "VPN $VPN" "Disconnected."
fi
exit 0