mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_devuan() to add create_vm() compatibility
This commit is contained in:
parent
e96fc18f1f
commit
cf231a8e2c
1 changed files with 4 additions and 10 deletions
14
quickget
14
quickget
|
@ -760,20 +760,14 @@ function get_debian() {
|
||||||
function get_devuan() {
|
function get_devuan() {
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local URL=""
|
local URL="https://files.devuan.org/devuan_${RELEASE}/desktop-live"
|
||||||
local VERSION=""
|
|
||||||
|
|
||||||
case ${RELEASE} in
|
case ${RELEASE} in
|
||||||
beowulf) VERSION="3.1.1";;
|
beowulf) ISO="devuan_${RELEASE}_3.1.1_amd64_desktop-live.iso";;
|
||||||
chimaera) VERSION="4.0.0";;
|
chimaera) ISO="devuan_${RELEASE}_4.0.0_amd64_desktop-live.iso";;
|
||||||
esac
|
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)
|
HASH=$(wget -q -O- "${URL}/SHASUMS.txt" | grep "${ISO}" | cut -d' ' -f1)
|
||||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
check_hash "${ISO}" "${HASH}"
|
|
||||||
make_vm_config "${ISO}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_elementary() {
|
function get_elementary() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue