Skip to content

Commit

Permalink
Add Antix
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit authored and flexiondotorg committed Oct 19, 2023
1 parent c0a8fe2 commit 1b3c113
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ function os_support() {
echo alma \
alpine \
android \
antix \
archlinux \
archcraft \
arcolinux \
Expand Down Expand Up @@ -275,6 +276,14 @@ function editions_android() {
echo x86 x86_64
}

function releases_antix() {
echo 21 22 23
}

function editions_antix() {
echo net-sysv core-sysv base-sysv full-sysv net-runit core-runit base-runit full-runit
}

function releases_archlinux() {
echo latest
}
Expand Down Expand Up @@ -1072,6 +1081,40 @@ function get_android() {
echo "${URL}/${ISO} ${HASH}"
}

function get_antix() {
local EDITION="${1:-}"
local HASH=""
local ISO=""
local URL="https://sourceforge.net/projects/antix-linux/files/Final/antiX-${RELEASE}"

case ${RELEASE} in
21) URL_runit="${URL}/runit-bullseye";;
*) URL_runit="${URL}/runit-antiX-${RELEASE}";;
esac

case ${EDITION} in
net-sysv) ISO="antiX-${RELEASE}-net_x64-net.iso";;
core-sysv) ISO="antiX-${RELEASE}_x64-core.iso";;
base-sysv) ISO="antiX-${RELEASE}_x64-base.iso";;
full-sysv) ISO="antiX-${RELEASE}_x64-full.iso";;
net-runit) ISO="antiX-${RELEASE}-runit-net_x64-net.iso"
URL="${URL_runit}"
;;
core-runit) ISO="antiX-${RELEASE}-runit_x64-core.iso"
URL="${URL_runit}"
;;
base-runit) ISO="antiX-${RELEASE}-runit_x64-base.iso"
URL="${URL_runit}"
;;
full-runit) ISO="antiX-${RELEASE}-runit_x64-full.iso"
URL="${URL_runit}"
;;
esac

HASH=$(wget -q -O- ${URL}/README.txt | grep "${ISO}" | cut -d' ' -f1 | head -1)
echo "${URL}/${ISO} ${HASH}"
}

function get_archlinux() {
local HASH=""
local ISO=""
Expand Down

0 comments on commit 1b3c113

Please sign in to comment.