mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Set rpi_model from /proc/cpuinfo for QEMU
This commit is contained in:
		
							parent
							
								
									58961b862c
								
							
						
					
					
						commit
						8339e46c5d
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -113,8 +113,9 @@ tmp=$(git rev-parse --verify HEAD) &&
 | 
			
		|||
    IIAB_COMMIT=$tmp
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
grep -iq raspberry /proc/device-tree/model &&
 | 
			
		||||
    RPI_MODEL=$(grep -ai raspberry /proc/device-tree/model | tr -d '\0')
 | 
			
		||||
grep -iq raspberry /proc/cpuinfo &&
 | 
			
		||||
    RPI_MODEL=$(grep -i raspberry /proc/cpuinfo | sed 's/.*: //')
 | 
			
		||||
    #RPI_MODEL=$(grep -ai raspberry /proc/device-tree/model | tr -d '\0')
 | 
			
		||||
 | 
			
		||||
# /proc/device-tree/model e.g. 'Parallels ARM Virtual Machine' identical to...
 | 
			
		||||
# /sys/firmware/devicetree/base/model (also true on RPi hardware!)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue