DistroHopper/templates/slax
2026-05-27 17:00:06 +02:00

42 lines
1.1 KiB
Text

# Template file for 'slax'
OSNAME="slax"
PRETTY="Slax"
LOGO=""
ICON="slax.svg"
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/slax.png"
CATEGORY="Lightweight"
BASEDOF="Debian Slackware"
HOMEPAGE="https://www.slax.org"
DESCRIPTION="Compact, fast, and modern Linux operating system that combines sleek design with modular approach. With the ability to run directly from a USB flash drive without the need for installation, Slax is truly portable and fits easily in your pocket"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
function releases_() {
echo latest
}
function editions_() {
echo debian slackware
}
function get_() {
local HASH=""
local ISO=""
local URL=""
case ${EDITION} in
debian)
URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-12.x"
ISO=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1);;
slackware)
URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-15.x"
ISO=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1);;
esac
HASH=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1)
echo "${URL}/${ISO} ${HASH}"
}
function config_() {
echo "boot=\"legacy\"" >> "${CONF_FILE}"
}