mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-11-04 04:49:29 +00:00 
			
		
		
		
	Create internet-check.sh
This commit is contained in:
		
							parent
							
								
									1730d5326e
								
							
						
					
					
						commit
						28b0fcdce7
					
				
							
								
								
									
										7
									
								
								misc/internet-check.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								misc/internet-check.sh
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
#!/usr/bin/env bash -ex
 | 
			
		||||
wget -q --tries=10 --timeout=5 --spider http://google.com
 | 
			
		||||
if [[ $? -eq 0 ]]; then
 | 
			
		||||
        echo -e "Internet Online"
 | 
			
		||||
else
 | 
			
		||||
        echo -e "Internet Offline"
 | 
			
		||||
fi
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user