petits-scripts-persos/switch-vpn
2022-02-10 09:05:07 +01:00

7 lines
180 B
Bash
Executable File

#!/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