DistroHopper/templates/slitaz
2026-11-17 18:32:48 +01:00

42 lines
1.2 KiB
Text

# Template file for 'slitaz'
OSNAME="slitaz"
PRETTY="SliTaz"
LOGO=""
ICON="slitaz.svg"
CATEGORY="Lightweight"
BASEDOF="-"
HOMEPAGE="https://www.slitaz.org"
DESCRIPTION="Simple, fast and low resource Linux OS for servers & desktops"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
function releases_() {
# The mirror serves a plain directory index. The rolling images are named
# slitaz-rolling-<variant>.iso; the default one has no variant suffix and
# is called "rolling".
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://mirror.slitaz.org/iso/rolling/" \
| grep -oE 'slitaz-rolling(-[a-z0-9-]+)?\.iso' \
| sed 's|\.iso$||; s|^slitaz-rolling||' \
| sed 's|^$|rolling|; s|^-|rolling-|' \
| sort -u)
}
function get_() {
local HASH=""
local VARIANT="${RELEASE#rolling}"
local VARIANT="${VARIANT#-}"
local ISO="slitaz-rolling"
[ -n "${VARIANT}" ] && ISO="${ISO}-${VARIANT}"
local URL="https://mirror.slitaz.org/iso/rolling"
HASH=$(web_pipe "${URL}/${ISO}.md5" | cut -d' ' -f1)
echo "${URL}/${ISO}.iso ${HASH}"
}
function config_() {
echo "boot=\"legacy\"" >> "${CONF_FILE}"
echo "disk_size=\"4G\"" >> "${CONF_FILE}"
echo "ram=\"512M\"" >> "${CONF_FILE}"
}