Skip to content

Commit

Permalink
divide into slax-debian and slax-slackware
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Oct 18, 2023
1 parent d6bd53e commit babef11
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ function pretty_name() {
reactos) PRETTY_NAME="ReactOS";;
rebornos) PRETTY_NAME="RebornOS";;
rockylinux) PRETTY_NAME="Rocky Linux";;
slax-debian) PRETTY_NAME="Slax Debian";;
slax-slackware) PRETTY_NAME="Slax Slackware";;
truenas-core) PRETTY_NAME="TrueNAS Core";;
truenas-scale) PRETTY_NAME="TrueNAS Scale";;
ubuntu-budgie) PRETTY_NAME="Ubuntu Budgie";;
Expand Down Expand Up @@ -231,7 +233,8 @@ function os_support() {
rockylinux \
siduction \
slackware \
slax \
slax-debian \
slax-slackware \
solus \
tails \
trisquel \
Expand Down Expand Up @@ -606,12 +609,12 @@ function releases_slackware() {
echo 14.2 15.0
}

function releases_slax() {
echo latest
function releases_slax-debian() {
echo 11.2.0 11.2.1 11.3.0 11.4.0 11.6.0 12.1.0
}

function editions_slax() {
echo Debian Slackware
function releases_slax-slackware() {
echo 15.0.0 15.0.1 15.0.2
}

function releases_solus() {
Expand Down Expand Up @@ -946,7 +949,7 @@ EOF
echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
batocera)
echo "disk_size=\"8G\"" >> "${CONF_FILE}";;
dragonflybsd|haiku|openbsd|netbsd|slackware|slax|tails)
dragonflybsd|haiku|openbsd|netbsd|slackware|slax-debian|slax-slackware|tails)
echo "boot=\"legacy\"" >> "${CONF_FILE}";;
deepin)
echo "disk_size=\"64G\"" >> "${CONF_FILE}"
Expand Down Expand Up @@ -1778,19 +1781,25 @@ function get_siduction() {
echo "${URL}/${ISO} ${HASH}"
}

function get_slax() {
function get_slax-debian() {
local HASH=""
local ISO=""
local URL="https://slax.org/download-slax.php?a=64bit&b=${EDITION}"
local URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-11.x"

ISO=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | grep "${RELEASE}")
HASH=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | grep "${RELEASE}" | cut -d' ' -f1)

echo "${URL}/${ISO} ${HASH}"
}

function get_slax-slackware() {
local HASH=""
local ISO=""
local URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-15.x"

ISO=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | grep "${RELEASE}")
HASH=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | grep "${RELEASE}" | cut -d' ' -f1)

case ${EDITION} in
Debian) ISO="slax-64bit-11.6.0.iso"
HASH="b3771211c4485fec2e4f2418b06125f3e53424c5"
;;
Slackware) ISO="slax-64bit-15.0.1.iso"
HASH="4ec9dff930251fbae847a56b18d53505147faf84"
;;
esac
echo "${URL}/${ISO} ${HASH}"
}

Expand Down

0 comments on commit babef11

Please sign in to comment.