mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor get_slackware() to add create_vm() compatibility
This commit is contained in:
		
							parent
							
								
									455b9e723c
								
							
						
					
					
						commit
						7ec0751591
					
				
					 1 changed files with 3 additions and 17 deletions
				
			
		
							
								
								
									
										20
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								quickget
									
										
									
									
									
								
							|  | @ -1100,24 +1100,10 @@ function get_rockylinux() { | ||||||
| 
 | 
 | ||||||
| function get_slackware() { | function get_slackware() { | ||||||
|     local HASH="" |     local HASH="" | ||||||
|     local ISO="" |     local ISO="slackware64-${RELEASE}-install-dvd.iso" | ||||||
|     local URL="" |     local URL="https://slackware.nl/slackware/slackware-iso/slackware64-${RELEASE}-iso" | ||||||
| 
 |  | ||||||
|     case ${RELEASE} in |  | ||||||
|         current) |  | ||||||
|           URL="https://slackware.nl/slackware/slackware64-current-iso" |  | ||||||
|           ISO="slackware64-current-install-dvd.iso" |  | ||||||
|           ;; |  | ||||||
|         *) |  | ||||||
|           URL="https://mirrors.slackware.com/slackware/slackware-iso/slackware64-${RELEASE}-iso" |  | ||||||
|           ISO="slackware64-${RELEASE}-install-dvd.iso" |  | ||||||
|           ;; |  | ||||||
|     esac |  | ||||||
| 
 |  | ||||||
|     HASH=$(wget -q -O- "${URL}/${ISO}.md5" |  cut -d' ' -f1) |     HASH=$(wget -q -O- "${URL}/${ISO}.md5" |  cut -d' ' -f1) | ||||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" |     echo "${URL}/${ISO} ${HASH}" | ||||||
|     check_hash "${ISO}" "${HASH}" |  | ||||||
|     make_vm_config "${ISO}" |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_solus() { | function get_solus() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue