pid test 15

This commit is contained in:
Désiré Werner Menrath 2023-11-11 20:25:39 +01:00
parent 17a289ecef
commit da7d4fe046

3
wire_g
View File

@ -237,18 +237,17 @@ if selection=$(yad --no-klick --list --center \
<b>----------------------------------------------------------------------------------</b>
<b>If no tunnels are listed,</b>
<b>so they have to import their tunnel beforehand.</b>")
export pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
then
if [[ -n $active ]]
then
wg_stop
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
connect
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
kill -n $pid
else
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
connect
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
kill -n $pid
fi
fi