#!/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 nmcli connection show rezine_vpn37_udp | grep 'VPN connected' &>/dev/null [ "$?" -eq 0 ] && notify-send 'VPN UDP connecté' || notify-send 'VPN UDP stoppé'