edit
This commit is contained in:
parent
d38b1d46f7
commit
1874098311
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue