diff --git a/quickget b/quickget index 46fc73abed..81d6183dd2 100755 --- a/quickget +++ b/quickget @@ -68,6 +68,8 @@ function pretty_name() { reactos) PRETTY_NAME="ReactOS";; rebornos) PRETTY_NAME="RebornOS";; rockylinux) PRETTY_NAME="Rocky Linux";; + slax-debian) PRETTY_NAME="Slax Debian";; + slax-slackware) PRETTY_NAME="Slax Slackware";; truenas-core) PRETTY_NAME="TrueNAS Core";; truenas-scale) PRETTY_NAME="TrueNAS Scale";; ubuntu-budgie) PRETTY_NAME="Ubuntu Budgie";; @@ -231,7 +233,8 @@ function os_support() { rockylinux \ siduction \ slackware \ - slax \ + slax-debian \ + slax-slackware \ solus \ tails \ trisquel \ @@ -606,12 +609,12 @@ function releases_slackware() { echo 14.2 15.0 } -function releases_slax() { - echo latest +function releases_slax-debian() { + echo 11.2.0 11.2.1 11.3.0 11.4.0 11.6.0 12.1.0 } -function editions_slax() { - echo Debian Slackware +function releases_slax-slackware() { + echo 15.0.0 15.0.1 15.0.2 } function releases_solus() { @@ -946,7 +949,7 @@ EOF echo "disk_size=\"32G\"" >> "${CONF_FILE}";; batocera) echo "disk_size=\"8G\"" >> "${CONF_FILE}";; - dragonflybsd|haiku|openbsd|netbsd|slackware|slax|tails) + dragonflybsd|haiku|openbsd|netbsd|slackware|slax-debian|slax-slackware|tails) echo "boot=\"legacy\"" >> "${CONF_FILE}";; deepin) echo "disk_size=\"64G\"" >> "${CONF_FILE}" @@ -1778,19 +1781,25 @@ function get_siduction() { echo "${URL}/${ISO} ${HASH}" } -function get_slax() { +function get_slax-debian() { local HASH="" local ISO="" - local URL="https://slax.org/download-slax.php?a=64bit&b=${EDITION}" + local URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-11.x" + + ISO=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | grep "${RELEASE}") + HASH=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | grep "${RELEASE}" | cut -d' ' -f1) + + echo "${URL}/${ISO} ${HASH}" +} + +function get_slax-slackware() { + local HASH="" + local ISO="" + local URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-15.x" + + ISO=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | grep "${RELEASE}") + HASH=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | grep "${RELEASE}" | cut -d' ' -f1) - case ${EDITION} in - Debian) ISO="slax-64bit-11.6.0.iso" - HASH="b3771211c4485fec2e4f2418b06125f3e53424c5" - ;; - Slackware) ISO="slax-64bit-15.0.1.iso" - HASH="4ec9dff930251fbae847a56b18d53505147faf84" - ;; - esac echo "${URL}/${ISO} ${HASH}" }