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() {
|
||||
local HASH=""
|
||||
local ISO=""
|
||||
local URL=""
|
||||
|
||||
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
|
||||
|
||||
local ISO="slackware64-${RELEASE}-install-dvd.iso"
|
||||
local URL="https://slackware.nl/slackware/slackware-iso/slackware64-${RELEASE}-iso"
|
||||
HASH=$(wget -q -O- "${URL}/${ISO}.md5" | cut -d' ' -f1)
|
||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||
check_hash "${ISO}" "${HASH}"
|
||||
make_vm_config "${ISO}"
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function get_solus() {
|
||||
|
|
Loading…
Reference in a new issue