test 14 pid

This commit is contained in:
Désiré Werner Menrath 2023-11-11 20:15:10 +01:00
parent a666c7f915
commit 17a289ecef

11
wire_g
View File

@ -90,17 +90,12 @@ import_wg(){
wg_stop wg_stop
nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt
wg_notify wg_notify
kill -n $pid
wire_g
else else
nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt
wg_notify wg_notify
kill -n $pid
wire_g
fi fi
kill -n $pid
wire_g
fi ;; fi ;;
*) yad --button=$"OK" --title=$"Wireguard .conf Select file" \ *) yad --button=$"OK" --title=$"Wireguard .conf Select file" \
@ -151,6 +146,8 @@ remove(){
--text-align=center --button=$"OK" --title "Wire-G Trash" \ --text-align=center --button=$"OK" --title "Wire-G Trash" \
--center --buttons-layout=center --borders=8 --center --buttons-layout=center --borders=8
fi fi
kill -n $pid
wire_g
if [ "$selection" = "$active" ] if [ "$selection" = "$active" ]
then then
pkill wire_g pkill wire_g