mirror of
				https://github.com/brain-hackers/brain-config.git
				synced 2025-11-01 04:58:37 +09:00 
			
		
		
		
	avoid bug if user puts in negative gpu mem
This commit is contained in:
		| @@ -166,7 +166,7 @@ do_memory_split() { | |||||||
|     [ -z "$CUR_GPU_MEM" ] && CUR_GPU_MEM=64 |     [ -z "$CUR_GPU_MEM" ] && CUR_GPU_MEM=64 | ||||||
|     ## ask users what gpu_mem they want |     ## ask users what gpu_mem they want | ||||||
|     NEW_GPU_MEM=$(whiptail --inputbox "How much memory should the GPU have?  e.g. 16/32/64/128/256" \ |     NEW_GPU_MEM=$(whiptail --inputbox "How much memory should the GPU have?  e.g. 16/32/64/128/256" \ | ||||||
|       20 70 "$CUR_GPU_MEM" 3>&1 1>&2 2>&3) |       20 70 -- "$CUR_GPU_MEM" 3>&1 1>&2 2>&3) | ||||||
|     if [ $? -eq 0 ]; then |     if [ $? -eq 0 ]; then | ||||||
|       set_config_var gpu_mem "$NEW_GPU_MEM" /boot/config.txt |       set_config_var gpu_mem "$NEW_GPU_MEM" /boot/config.txt | ||||||
|       ASK_TO_REBOOT=1 |       ASK_TO_REBOOT=1 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alex Bradbury
					Alex Bradbury