From 088999ed6397d6d2ce599f7ef3bf9a2af77d224f Mon Sep 17 00:00:00 2001 From: zenobit Date: Thu, 19 Oct 2023 12:11:17 +0200 Subject: [PATCH] Add Slitaz GNU/Linux --- quickget | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/quickget b/quickget index 16c0a99a7f..d2268fff75 100755 --- a/quickget +++ b/quickget @@ -93,6 +93,7 @@ function pretty_name() { reactos) PRETTY_NAME="ReactOS";; rebornos) PRETTY_NAME="RebornOS";; rockylinux) PRETTY_NAME="Rocky Linux";; + slitaz) PRETTY_NAME="SliTaz GNU/Linux";; tinycore) PRETTY_NAME="Tiny Core Linux";; truenas-core) PRETTY_NAME="TrueNAS Core";; truenas-scale) PRETTY_NAME="TrueNAS Scale";; @@ -260,6 +261,7 @@ function os_support() { rockylinux \ siduction \ slackware \ + slitaz \ solus \ spiral \ tails \ @@ -345,6 +347,7 @@ function os_homepages(){ rockylinux) HOMEPAGE="https://rockylinux.org/";; siduction) HOMEPAGE="https://siduction.org/";; slackware) HOMEPAGE="http://www.slackware.com/";; + slitaz) HOMEPAGE="https://www.slitaz.org/";; solus) HOMEPAGE="https://getsol.us/";; spiral) HOMEPAGE="https://spirallinux.github.io/";; tails) HOMEPAGE="https://tails.net/";; @@ -740,6 +743,10 @@ function releases_slackware() { echo 14.2 15.0 } +function releases_slitaz() { + echo preferred core core64 loram core-5in1 preinit +} + function releases_solus() { echo 4.3 } @@ -1111,6 +1118,11 @@ EOF echo "disk_size=\"2G\"" >> "${CONF_FILE}" echo "ram=\"128M\"" >> "${CONF_FILE}" ;; + slitaz) + echo "boot=\"legacy\"" >> "${CONF_FILE}" + echo "disk_size=\"4G\"" >> "${CONF_FILE}" + echo "ram=\"512M\"" >> "${CONF_FILE}" + ;; truenas-scale|truenas-core) echo "boot=\"legacy\"" >> "${CONF_FILE}" # the rest is non-functional @@ -1960,6 +1972,20 @@ function get_slackware() { echo "${URL}/${ISO} ${HASH}" } +function get_slitaz() { + local HASH="" + local ISO="slitaz-rolling-${RELEASE}" + local URL="http://mirror.slitaz.org/iso/rolling" + + case ${RELEASE} in + preferred) ISO="slitaz-rolling";; + *) ISO="slitaz-rolling-${RELEASE}";; + esac + + HASH=$(wget -q -O- "${URL}/${ISO}.md5" | cut -d' ' -f1) + echo "${URL}/${ISO}.iso ${HASH}" +} + function get_solus() { local EDITION="${1:-}" local HASH=""