wire_g else korrigiert wg_stop unter else gesetzt

This commit is contained in:
Désiré Werner Menrath 2023-10-30 19:10:10 +01:00
parent 233db20d49
commit 5bebb7ccaf

2
wire_g
View File

@ -176,10 +176,10 @@ selection=$(yad --no-click --list \
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
if [ -n $active ]
then
wg_stop
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
connect
else
wg_stop
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
connect
fi