mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Vars refactor: Replace allram with RAM_HOST
This commit is contained in:
		
							parent
							
								
									d5e669441b
								
							
						
					
					
						commit
						1399d62a69
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										6
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -200,10 +200,10 @@ function vm_boot() { | |||
|   echo " - CPU:      ${CORES_VM} Core(s)" | ||||
| 
 | ||||
|   local ram="2G" | ||||
|   local allram=$(free --mega -h | grep Mem | cut -d':' -f2 | cut -d'G' -f1 | sed 's/ //g') | ||||
|   if [ ${allram} -ge 64 ]; then | ||||
|   local RAM_HOST=$(free --mega -h | grep Mem | cut -d':' -f2 | cut -d'G' -f1 | sed 's/ //g') | ||||
|   if [ ${RAM_HOST} -ge 64 ]; then | ||||
|     ram="4G" | ||||
|   elif [ ${allram} -ge 16 ]; then | ||||
|   elif [ ${RAM_HOST} -ge 16 ]; then | ||||
|     ram="3G" | ||||
|   fi | ||||
|   echo " - RAM:      ${ram}" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue