mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_freebsd() to add create_vm() compatibility
This commit is contained in:
parent
8af32ca26c
commit
6941a797d4
1 changed files with 4 additions and 8 deletions
12
quickget
12
quickget
|
@ -798,15 +798,11 @@ function get_fedora() {
|
|||
|
||||
function get_freebsd() {
|
||||
local HASH=""
|
||||
local ISO=""
|
||||
local URL=""
|
||||
local ISO="FreeBSD-${RELEASE}-RELEASE-amd64-dvd1.iso"
|
||||
local URL="https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/${RELEASE}"
|
||||
|
||||
URL="https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/${RELEASE}"
|
||||
ISO="FreeBSD-${RELEASE}-RELEASE-amd64-dvd1.iso"
|
||||
HASH=$(wget -q -O- "${URL}/CHECKSUM.SHA512-FreeBSD-${RELEASE}-RELEASE-amd64" | grep "${ISO}" | cut -d' ' -f4)
|
||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||
check_hash "${ISO}" "${HASH}"
|
||||
make_vm_config "${ISO}"
|
||||
HASH=$(wget -q -O- "${URL}/CHECKSUM.SHA256-FreeBSD-${RELEASE}-RELEASE-amd64" | grep "${ISO}" | grep -v ".xz" | cut -d' ' -f4)
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function get_garuda() {
|
||||
|
|
Loading…
Reference in a new issue