Hauptfenster pid variable nach unten gesetzt
This commit is contained in:
parent
d97f4a2950
commit
b2078f9e0e
6
wire_g
6
wire_g
@ -243,14 +243,14 @@ if selection=$(yad --no-klick --list --center \
|
||||
if [[ -n $active ]]
|
||||
then
|
||||
wg_stop
|
||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||
export pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
|
||||
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
|
||||
export pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
|
||||
connect
|
||||
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
|
||||
kill -n $pid
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user