From 35bccd9744db9ebb85d86637845e33e7aa9c29c8 Mon Sep 17 00:00:00 2001 From: punix Date: Thu, 16 Nov 2023 12:15:44 +0100 Subject: [PATCH] import test --- wire_g | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wire_g b/wire_g index d40b3a8..e85e288 100755 --- a/wire_g +++ b/wire_g @@ -94,7 +94,8 @@ import_wg(){ nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt wg_notify else - pkill yad + IFS=$'\n' lines=( $(awk '{print $2}' ${WG_WDIR}Notify_PID.txt) ) # Dies zeigt auf die richtige pid + kill $lines nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt wg_notify fi