pid korrektur 5

This commit is contained in:
Désiré Werner Menrath 2023-11-11 18:25:24 +01:00
parent a6145104e2
commit 60abaa01ec

4
wire_g
View File

@ -237,12 +237,12 @@ if selection=$(yad --no-klick --list --center \
nmcli connection up $selection &> ${wg_wdir}.tmp.txt nmcli connection up $selection &> ${wg_wdir}.tmp.txt
connect connect
export pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}') export pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
bg %$pid bg $pid
else else
nmcli connection up $selection &> ${wg_wdir}.tmp.txt nmcli connection up $selection &> ${wg_wdir}.tmp.txt
connect connect
export pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}') export pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
bg %$pid bg $pid
fi fi
fi fi