wg_stop export hinzugefügt wegen notify

This commit is contained in:
Désiré Werner Menrath 2023-11-16 18:32:58 +01:00
parent 72db4c29b2
commit 0ba8f1d71a

3
wire_g
View File

@ -60,6 +60,7 @@ wg_stop(){
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
############################################################################################################
############################################################################################################