Skip to content

Commit

Permalink
Add Devuan. Closes #345
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Feb 21, 2022
1 parent a4b7b33 commit af7ed8c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ function os_support() {
arcolinux \
cachyos \
debian \
devaun \
elementary \
freebsd \
fedora \
Expand Down Expand Up @@ -294,6 +295,11 @@ function releases_cachyos() {
2022.02.11
}

function releases_devuan() {
echo beowulf \
chimaera
}

function releases_elementary() {
echo 6.1
}
Expand Down Expand Up @@ -875,6 +881,26 @@ function get_debian() {
make_vm_config "${ISO}"
}

function get_devuan() {
local HASH=""
local ISO=""
local URL=""
local VERSION=""

validate_release "releases_devuan"
case ${RELEASE} in
beowulf) VERSION="3.1.1";;
chimaera) VERSION="4.0.0";;
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)
web_get "${URL}/${ISO}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
}

function get_elementary() {
local ISO=""
local ISOTAG="20211218-rc"
Expand Down Expand Up @@ -1938,6 +1964,8 @@ if [ -n "${2}" ]; then
fi
VM_PATH="${OS}-${RELEASE}-${FREEDOM}"
get_debian "${FREEDOM}"
elif [ "${OS}" == "devuan" ]; then
get_devuan
elif [ "${OS}" == "elementary" ]; then
get_elementary
elif [ "${OS}" == "macos" ]; then
Expand Down Expand Up @@ -2051,6 +2079,8 @@ else
releases_arcolinux
elif [ "${OS}" == "debian" ]; then
releases_debian
elif [ "${OS}" == "devuan" ]; then
releases_devuan
elif [ "${OS}" == "elementary" ]; then
releases_elementary
elif [ "${OS}" == "freebsd" ]; then
Expand Down

0 comments on commit af7ed8c

Please sign in to comment.