You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							359 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							359 B
						
					
					
				
								#!/bin/bash
							 | 
						|
								
							 | 
						|
								if ping -c1 1.1.1.1 2>&1 >/dev/null; then
							 | 
						|
								    connectivity=true
							 | 
						|
								else
							 | 
						|
								    connectivity=false
							 | 
						|
								fi
							 | 
						|
								echo "connectivity=$connectivity"
							 | 
						|
								
							 | 
						|
								if ping -c1 google.fr 2>&1 >/dev/null; then
							 | 
						|
								    dns=true
							 | 
						|
								else
							 | 
						|
								    dns=false
							 | 
						|
								fi
							 | 
						|
								echo "dns=$dns"
							 | 
						|
								
							 | 
						|
								if nmcli device status | grep -E "^wl" | grep -q connected; then
							 | 
						|
								    wifi=true
							 | 
						|
								else
							 | 
						|
								    wifi=false
							 | 
						|
								fi
							 | 
						|
								echo "wifi=$wifi"
							 |