2022-02-10 08:05:07 +00:00
|
|
|
|
#!/bin/sh
|
|
|
|
|
if [ -n "$(nmcli connection show rezine_vpn37_udp | grep activated)" ] ; then
|
|
|
|
|
nmcli connection down rezine_vpn37_udp
|
|
|
|
|
else
|
|
|
|
|
nmcli connection up rezine_vpn37_udp
|
|
|
|
|
fi
|
2022-02-24 15:46:22 +00:00
|
|
|
|
|
|
|
|
|
nmcli connection show rezine_vpn37_udp | grep 'VPN connected' &>/dev/null
|
|
|
|
|
[ "$?" -eq 0 ] && notify-send 'VPN UDP connecté' || notify-send 'VPN UDP stoppé'
|