test 13 pid
This commit is contained in:
parent
cc6ebb3206
commit
a666c7f915
10
wire_g
10
wire_g
@ -90,14 +90,14 @@ import_wg(){
|
||||
wg_stop
|
||||
nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt
|
||||
wg_notify
|
||||
kill $pid
|
||||
kill -n $pid
|
||||
wire_g
|
||||
|
||||
|
||||
else
|
||||
nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt
|
||||
wg_notify
|
||||
kill $pid
|
||||
kill -n $pid
|
||||
wire_g
|
||||
|
||||
fi
|
||||
@ -177,7 +177,7 @@ up_or_down(){
|
||||
--center --buttons-layout=center --borders=8
|
||||
else
|
||||
wg_stop
|
||||
kill $pid
|
||||
kill -n $pid
|
||||
wire_g
|
||||
|
||||
fi }
|
||||
@ -247,12 +247,12 @@ if selection=$(yad --no-klick --list --center \
|
||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||
connect
|
||||
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
|
||||
kill $pid
|
||||
kill -n $pid
|
||||
else
|
||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||
connect
|
||||
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
|
||||
kill $pid
|
||||
kill -n $pid
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user