mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add check_cpu_flag()
This commit is contained in:
		
							parent
							
								
									62fb6690db
								
							
						
					
					
						commit
						0a56dea565
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		
							
								
								
									
										9
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -125,6 +125,15 @@ function enable_usb_passthrough() { | |||
|   fi | ||||
| } | ||||
| 
 | ||||
| function check_cpu_flag() { | ||||
|   local HOST_CPU_FLAG="${1}" | ||||
|   if lscpu | grep -o "^Flags\b.*: .*\b${HOST_CPU_FLAG}\b" > /dev/null; then | ||||
|     return 0 | ||||
|   else | ||||
|     return 1 | ||||
|   fi | ||||
| } | ||||
| 
 | ||||
| function vm_boot() { | ||||
|   local VMNAME="" | ||||
|   VMNAME=$(basename "${VM}" .conf) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue