From 0ba8f1d71af72498a7a3949004517243df15d17c Mon Sep 17 00:00:00 2001 From: punix Date: Thu, 16 Nov 2023 18:32:58 +0100 Subject: [PATCH] =?UTF-8?q?wg=5Fstop=20export=20hinzugef=C3=BCgt=20wegen?= =?UTF-8?q?=20notify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wire_g | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wire_g b/wire_g index 272c932..2b6fb6b 100755 --- a/wire_g +++ b/wire_g @@ -59,7 +59,8 @@ wg_stop(){ IFS=$'\n' lines=( $(awk '{print $2}' ${WG_WDIR}for-kill_pid.txt) ) kill $lines } - + + export -f wg_stop ############################################################################################################ ############################################################################################################ @@ -93,9 +94,11 @@ wg_notify(){ pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}') echo $pid > ${WG_WDIR}for-kill_pid.txt IFS=$'\n' lines=( $(awk '{print $2}' ${WG_WDIR}for-kill_pid.txt) ) # awk '{print $2}' heist, zeig mir nur die zweite Nummer an + } + # function end ############################################################################################################ ############################################################################################################