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" ]
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue