mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add Slackware (#369)
* add Slackware as supported OS * fix checksum check for Slackware * add Slackware as supported OS * fix checksum check for Slackware * fix case with new format
This commit is contained in:
		
							parent
							
								
									167be4da1d
								
							
						
					
					
						commit
						be48d663bd
					
				
					 1 changed files with 40 additions and 0 deletions
				
			
		
							
								
								
									
										40
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										40
									
								
								quickget
									
										
									
									
									
								
							|  | @ -72,6 +72,7 @@ function pretty_name() { | |||
|     popos)              PRETTY_NAME="Pop!_OS";; | ||||
|     regolith)           PRETTY_NAME="Regolith Linux";; | ||||
|     rockylinux)         PRETTY_NAME="Rocky Linux";; | ||||
|     slackware)          PRETTY_NAME="Slackware Linux";; | ||||
|     ubuntu-budgie)      PRETTY_NAME="Ubuntu Budgie";; | ||||
|     ubuntu-kylin)       PRETTY_NAME="Ubuntu Kylin";; | ||||
|     ubuntu-mate)        PRETTY_NAME="Ubuntu MATE";; | ||||
|  | @ -228,6 +229,7 @@ function os_support() { | |||
|     popos \ | ||||
|     regolith \ | ||||
|     rockylinux \ | ||||
|     slackware \ | ||||
|     solus \ | ||||
|     tails \ | ||||
|     ubuntu \ | ||||
|  | @ -426,6 +428,12 @@ function releases_rockylinux() { | |||
|     8.0 | ||||
| } | ||||
| 
 | ||||
| function releases_slackware() { | ||||
|     echo 14.2 \ | ||||
|     15.0 \ | ||||
|     current | ||||
| } | ||||
| 
 | ||||
| function releases_solus() { | ||||
|     echo 4.3-budgie \ | ||||
|     4.3-gnome \ | ||||
|  | @ -686,6 +694,11 @@ EOF | |||
|             echo "disk_size=\"32G\"" >> "${OS}-${RELEASE}.conf" | ||||
|         fi | ||||
| 
 | ||||
| 	    if [ "${OS}" == "slackware" ]; then | ||||
|             echo "disk_size=\"32G\"" >> "${OS}-${RELEASE}.conf" | ||||
|             echo "boot=\"legacy\"" >> "${OS}-${RELEASE}.conf" | ||||
|         fi | ||||
| 
 | ||||
|         if [ "${OS}" == "haiku" ]; then | ||||
|             echo "boot=\"legacy\"" >> "${OS}-${RELEASE}.conf" | ||||
|             echo "disk_size=\"32G\"" >> "${OS}-${RELEASE}.conf" | ||||
|  | @ -1137,6 +1150,29 @@ function get_rocky() { | |||
|     make_vm_config "${ISO}" | ||||
| } | ||||
| 
 | ||||
| function get_slackware() { | ||||
|     local HASH="" | ||||
|     local ISO="" | ||||
|     local URL="" | ||||
| 
 | ||||
|     local arch="64" | ||||
|      | ||||
|     if [[ "${RELEASE}" == "current" ]]; then | ||||
| 	URL="https://slackware.nl/slackware/slackware${arch}-current-iso/slackware${arch}-current-install-dvd.iso" | ||||
|     else | ||||
| 	URL="https://mirrors.slackware.com/slackware/slackware-iso/slackware${arch}-${RELEASE}-iso/slackware${arch}-${RELEASE}-install-dvd.iso" | ||||
|     fi | ||||
| 
 | ||||
|     ISO="slackware${arch}-${RELEASE}-install-dvd.iso" | ||||
|     HASH=$(wget -q -O- "${URL}.md5" |  cut -d' ' -f1) | ||||
| 
 | ||||
| 
 | ||||
|     web_get "${URL}" "${VM_PATH}" | ||||
|     check_hash "${ISO}" "${HASH}" | ||||
|     make_vm_config "${ISO}" | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| function get_solus() { | ||||
|     local RELNUM="" | ||||
|     local RELTYPE="" | ||||
|  | @ -1939,6 +1975,8 @@ if [ -n "${2}" ]; then | |||
|         get_opensuse | ||||
|     elif [ "${OS}" == "oraclelinux" ]; then | ||||
|         get_oraclelinux | ||||
|     elif [ "${OS}" == "slackware" ]; then | ||||
|         get_slackware | ||||
|     elif [ "${OS}" == "popos" ]; then | ||||
|         if [ -n "${3}" ]; then | ||||
|             DRIVER="${3}" | ||||
|  | @ -2054,6 +2092,8 @@ else | |||
|         releases_regolith | ||||
|     elif [ "${OS}" == "rockylinux" ]; then | ||||
|         releases_rockylinux | ||||
|     elif [ "${OS}" == "slackware" ]; then | ||||
|         releases_slackware | ||||
|     elif [ "${OS}" == "solus" ]; then | ||||
|         releases_solus | ||||
|     elif [[ "${OS}" == "tails"* ]]; then | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue