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" ] if [ -z "$ACTIVE" ]
then then
nmcli con up id "$VPN" nmcli con up id "$VPN"
notify-send "connected to $VPN"
else else
nmcli con down id "$VPN" nmcli con down id "$VPN"
notify-send "disconnected from $VPN" notify-send "VPN $VPN" "Disconnected."
fi fi
exit 0 exit 0