Hauptfenster pid variable nach unten gesetzt

This commit is contained in:
Désiré Werner Menrath 2023-11-14 09:14:36 +01:00
parent d97f4a2950
commit b2078f9e0e

4
wire_g
View File

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