Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Slax #761

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion quickget
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ function os_support() {
rockylinux \
siduction \
slackware \
slax \
solus \
spiral \
tails \
Expand Down Expand Up @@ -346,6 +347,7 @@ function os_homepages(){
rockylinux) HOMEPAGE="https://rockylinux.org/";;
siduction) HOMEPAGE="https://siduction.org/";;
slackware) HOMEPAGE="http://www.slackware.com/";;
slax) HOMEPAGE="https://www.slax.org/";;
solus) HOMEPAGE="https://getsol.us/";;
spiral) HOMEPAGE="https://spirallinux.github.io/";;
tails) HOMEPAGE="https://tails.net/";;
Expand Down Expand Up @@ -750,6 +752,14 @@ function releases_slackware() {
echo 14.2 15.0
}

function releases_slax() {
echo latest
}

function editions_slax() {
echo debian slackware
}

function releases_solus() {
echo 4.3
}
Expand Down Expand Up @@ -1080,7 +1090,7 @@ EOF
echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
batocera)
echo "disk_size=\"8G\"" >> "${CONF_FILE}";;
dragonflybsd|haiku|openbsd|netbsd|slackware|tails|tinycore)
dragonflybsd|haiku|openbsd|netbsd|slackware|slax|tails|tinycore)
echo "boot=\"legacy\"" >> "${CONF_FILE}";;
deepin)
echo "disk_size=\"64G\"" >> "${CONF_FILE}"
Expand Down Expand Up @@ -1954,6 +1964,24 @@ function get_slackware() {
echo "${URL}/${ISO} ${HASH}"
}

function get_slax() {
local HASH=""
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)
HASH=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1)
;;
slackware) URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-15.x"
ISO=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1)
HASH=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1)
;;
esac
echo "${URL}/${ISO} ${HASH}"
}

function get_solus() {
local EDITION="${1:-}"
local HASH=""
Expand Down