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