korrektur test pid 8
This commit is contained in:
parent
e354c1c04e
commit
ab365e2ed7
4
wire_g
4
wire_g
@ -231,7 +231,7 @@ if selection=$(yad --no-klick --list --center \
|
||||
--text=$"<b>Activ Tunnel: </b> <span color='#0fad0a'><b>$active</b></span>
|
||||
<b>----------------------------------------------------------------------------------</b>
|
||||
<b>If no tunnels are listed,</b>
|
||||
<b>so they have to import their tunnel beforehand.</b>") &
|
||||
<b>so they have to import their tunnel beforehand.</b>")
|
||||
then
|
||||
if [[ -n $active ]]
|
||||
then
|
||||
@ -240,13 +240,11 @@ if selection=$(yad --no-klick --list --center \
|
||||
connect
|
||||
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
|
||||
kill $pid
|
||||
wire_g
|
||||
else
|
||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||
connect
|
||||
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
|
||||
kill $pid
|
||||
wire_g
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user