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 ]]
|
if [[ -n $active ]]
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user