kill remove

This commit is contained in:
Désiré Werner Menrath 2023-11-14 09:19:57 +01:00
parent bb137e3ba4
commit 12103eeb4a

4
wire_g
View File

@ -245,13 +245,9 @@ if selection=$(yad --no-klick --list --center \
wg_stop
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
connect
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
kill "$pid"
else
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
connect
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
kill "$pid"
fi
fi