wg_stop export hinzugefügt wegen notify
This commit is contained in:
		
							
								
								
									
										3
									
								
								wire_g
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								wire_g
									
									
									
									
									
								
							@@ -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
 | 
			
		||||
############################################################################################################ 
 | 
			
		||||
############################################################################################################ 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user