mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	exclude ap0 from count_wifi_interfaces
This commit is contained in:
		
							parent
							
								
									bf5dc8cf15
								
							
						
					
					
						commit
						39cf3b2947
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -81,7 +81,7 @@
 | 
			
		|||
#item|trim != discovered_wan_iface
 | 
			
		||||
 | 
			
		||||
- name: Count WiFi ifaces
 | 
			
		||||
  shell: "ls -la /sys/class/net/*/phy80211 | awk -F / '{print $5}' | wc -l"
 | 
			
		||||
  shell: "ls -la /sys/class/net/*/phy80211 | awk -F / '{print $5}' | grep -v -e ap0 | wc -l"
 | 
			
		||||
  register: count_wifi_interfaces
 | 
			
		||||
 | 
			
		||||
# facts are apparently all stored as text, so do text comparisons from here on
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue