13 lines
		
	
	
		
			173 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			173 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
ssid="$(wpa_cli status | grep ssid | sed -n '2p' | awk -F '=' '{print $2}')"
 | 
						|
 | 
						|
if [[ $(echo $ssid | wc -c) -gt 1 ]]
 | 
						|
then
 | 
						|
    echo "$ssid"
 | 
						|
    exit;
 | 
						|
fi
 | 
						|
 | 
						|
echo ""
 | 
						|
 |