DistroHopper/OS/antix
zen0bit c087af2323 tmp
2024-04-10 21:20:44 +02:00

44 lines
1.4 KiB
Text

INFO="Antix|Debian||https://antixlinux.com/|Fast, lightweight and easy to install systemd-free linux live CD distribution based on Debian Stable for Intel-AMD x86 compatible systems.";;
function releases_antix() {
echo 23 22 21
}
function editions_antix() {
echo net-sysv core-sysv base-sysv full-sysv net-runit core-runit base-runit full-runit
}
function get_antix() {
local EDITION="${1:-}"
local HASH=""
local ISO=""
local URL_runit=""
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_1 | head -1)
echo "${URL}/${ISO} ${HASH}"
}