📦 Slint

This commit is contained in:
zenobit 2023-12-29 20:48:39 +01:00 committed by Martin Wimpress
parent efd8913de1
commit 5e7e677131
1 changed files with 29 additions and 1 deletions

View File

@ -112,6 +112,7 @@ function pretty_name() {
reactos) PRETTY_NAME="ReactOS";;
rebornos) PRETTY_NAME="RebornOS";;
rockylinux) PRETTY_NAME="Rocky Linux";;
slint) PRETTY_NAME="Slint";;
tinycore) PRETTY_NAME="Tiny Core Linux";;
truenas-core) PRETTY_NAME="TrueNAS Core";;
truenas-scale) PRETTY_NAME="TrueNAS Scale";;
@ -290,6 +291,7 @@ function os_support() {
siduction \
slackware \
slax \
slint \
solus \
spiral \
tails \
@ -389,6 +391,7 @@ function os_homepages(){
siduction) HOMEPAGE="https://siduction.org/";;
slackware) HOMEPAGE="http://www.slackware.com/";;
slax) HOMEPAGE="https://www.slax.org/";;
slint) HOMEPAGE="https://slint.fr/";;
solus) HOMEPAGE="https://getsol.us/";;
spiral) HOMEPAGE="https://spirallinux.github.io/";;
tails) HOMEPAGE="https://tails.net/";;
@ -889,6 +892,10 @@ function editions_slax() {
echo debian slackware
}
function releases_slint() {
echo 15.0 14.2.1
}
function releases_solus() {
echo 4.3
}
@ -1288,6 +1295,9 @@ EOF
echo "disk_size=\"2G\"" >> "${CONF_FILE}"
echo "ram=\"128M\"" >> "${CONF_FILE}"
;;
slint)
echo "disk_size=\"50G\"" >> "${CONF_FILE}"
;;
truenas-scale|truenas-core)
echo "boot=\"legacy\"" >> "${CONF_FILE}"
# the rest is non-functional
@ -1340,7 +1350,11 @@ EOF
fi
echo
echo "To start your $(pretty_name "${OS}") virtual machine run:"
echo " quickemu --vm ${CONF_FILE}"
if [ ${OS} == "slint" ]; then
echo -e " quickemu --vm ${CONF_FILE}\nTo start Slint with braille support run:\n quickemu --vm --braille --display sdl ${CONF_FILE}"
else
echo " quickemu --vm ${CONF_FILE}"
fi
echo
exit 0
}
@ -2374,6 +2388,7 @@ function get_slax() {
local ISO=""
local URL=""
case ${EDITION} in
debian) URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-12.x"
ISO=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1)
@ -2387,6 +2402,19 @@ function get_slax() {
echo "${URL}/${ISO} ${HASH}"
}
function get_slint() {
local HASH=""
local ISO=""
local URL=""
# Change to latest if needed
ISO="slint64-15.0-5.iso"
URL="https://slackware.uk/slint/x86_64/slint-${RELEASE}/iso"
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f4)
echo "${URL}/${ISO}" "${HASH}"
}
function get_solus() {
local EDITION="${1:-}"
local HASH=""