mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add Devuan. Closes #345
This commit is contained in:
		
							parent
							
								
									a4b7b33aaf
								
							
						
					
					
						commit
						af7ed8c2d6
					
				
					 1 changed files with 30 additions and 0 deletions
				
			
		
							
								
								
									
										30
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										30
									
								
								quickget
									
										
									
									
									
								
							|  | @ -194,6 +194,7 @@ function os_support() { | |||
|     arcolinux \ | ||||
|     cachyos \ | ||||
|     debian \ | ||||
|     devaun \ | ||||
|     elementary \ | ||||
|     freebsd \ | ||||
|     fedora \ | ||||
|  | @ -294,6 +295,11 @@ function releases_cachyos() { | |||
|     2022.02.11 | ||||
| } | ||||
| 
 | ||||
| function releases_devuan() { | ||||
|     echo beowulf \ | ||||
|     chimaera | ||||
| } | ||||
| 
 | ||||
| function releases_elementary() { | ||||
|     echo 6.1 | ||||
| } | ||||
|  | @ -875,6 +881,26 @@ function get_debian() { | |||
|     make_vm_config "${ISO}" | ||||
| } | ||||
| 
 | ||||
| function get_devuan() { | ||||
|     local HASH="" | ||||
|     local ISO="" | ||||
|     local URL="" | ||||
|     local VERSION="" | ||||
| 
 | ||||
|     validate_release "releases_devuan" | ||||
|     case ${RELEASE} in | ||||
|       beowulf) VERSION="3.1.1";; | ||||
|       chimaera) VERSION="4.0.0";; | ||||
|     esac | ||||
| 
 | ||||
|     URL="https://files.devuan.org/devuan_${RELEASE}/desktop-live" | ||||
|     ISO="devuan_${RELEASE}_${VERSION}_amd64_desktop-live.iso" | ||||
|     HASH=$(wget -q -O- "${URL}/SHASUMS.txt" | grep "${ISO}" | cut -d' ' -f1) | ||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" | ||||
|     check_hash "${ISO}" "${HASH}" | ||||
|     make_vm_config "${ISO}" | ||||
| } | ||||
| 
 | ||||
| function get_elementary() { | ||||
|     local ISO="" | ||||
|     local ISOTAG="20211218-rc" | ||||
|  | @ -1938,6 +1964,8 @@ if [ -n "${2}" ]; then | |||
|         fi | ||||
|         VM_PATH="${OS}-${RELEASE}-${FREEDOM}" | ||||
|         get_debian  "${FREEDOM}" | ||||
|     elif [ "${OS}" == "devuan" ]; then | ||||
|         get_devuan | ||||
|     elif [ "${OS}" == "elementary" ]; then | ||||
|         get_elementary | ||||
|     elif [ "${OS}" == "macos" ]; then | ||||
|  | @ -2051,6 +2079,8 @@ else | |||
|         releases_arcolinux | ||||
|     elif [ "${OS}" == "debian" ]; then | ||||
|         releases_debian | ||||
|     elif [ "${OS}" == "devuan" ]; then | ||||
|         releases_devuan | ||||
|     elif [ "${OS}" == "elementary" ]; then | ||||
|         releases_elementary | ||||
|     elif [ "${OS}" == "freebsd" ]; then | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue