mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_mxlinux() to add create_vm() compatibility
This commit is contained in:
parent
e57307e54a
commit
512aa14fe2
1 changed files with 5 additions and 16 deletions
21
quickget
21
quickget
|
@ -979,26 +979,15 @@ function get_mxlinux() {
|
||||||
local EDITION="${1:-}"
|
local EDITION="${1:-}"
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local URL=""
|
local URL="https://sourceforge.net/projects/mx-linux/files/Final/${EDITION}"
|
||||||
|
|
||||||
case ${EDITION} in
|
case ${EDITION} in
|
||||||
xfce)
|
Xfce) ISO="MX-${RELEASE}_x64.iso";;
|
||||||
URL="https://sourceforge.net/projects/mx-linux/files/Final/Xfce"
|
KDE) ISO="MX-${RELEASE}_KDE_x64.iso";;
|
||||||
ISO="MX-${RELEASE}_x64.iso"
|
Fluxbox) ISO="MX-${RELEASE}_fluxbox_x64.iso";;
|
||||||
;;
|
|
||||||
kde)
|
|
||||||
URL="https://sourceforge.net/projects/mx-linux/files/Final/KDE"
|
|
||||||
ISO="MX-${RELEASE}_KDE_x64.iso"
|
|
||||||
;;
|
|
||||||
fluxbox)
|
|
||||||
URL="https://sourceforge.net/projects/mx-linux/files/Final/Fluxbox"
|
|
||||||
ISO="MX-${RELEASE}_fluxbox_x64.iso"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)
|
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)
|
||||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
check_hash "${ISO}" "${HASH}"
|
|
||||||
make_vm_config "${ISO}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_netboot() {
|
function get_netboot() {
|
||||||
|
|
Loading…
Reference in a new issue