mirror of
				https://github.com/brain-hackers/brain-config.git
				synced 2025-11-04 14:38:36 +09:00 
			
		
		
		
	get_wifi_country: call save_config instead of reconfigure
This commit is contained in:
		
							
								
								
									
										7
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							@@ -1,3 +1,10 @@
 | 
			
		||||
raspi-config (20190620) buster; urgency=medium
 | 
			
		||||
 | 
			
		||||
  * get_wifi_country: call save_config instead of reconfigure
 | 
			
		||||
    - Prevents WiFi from disconnecting
 | 
			
		||||
 | 
			
		||||
 -- Serge Schneider <serge@raspberrypi.org>  Thu, 20 Jun 2019 20:01:06 +0100
 | 
			
		||||
 | 
			
		||||
raspi-config (20190619) buster; urgency=medium
 | 
			
		||||
 | 
			
		||||
  [ Simon Long ]
 | 
			
		||||
 
 | 
			
		||||
@@ -468,7 +468,7 @@ get_wifi_country() {
 | 
			
		||||
    fi
 | 
			
		||||
    return 1
 | 
			
		||||
  fi
 | 
			
		||||
  wpa_cli -i "$IFACE" reconfigure > /dev/null 2>&1
 | 
			
		||||
  wpa_cli -i "$IFACE" save_config > /dev/null 2>&1
 | 
			
		||||
  COUNTRY="$(wpa_cli -i "$IFACE" get country)"
 | 
			
		||||
  if [ "$COUNTRY" = "FAIL" ]; then
 | 
			
		||||
    return 1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user