Skip to content

Commit

Permalink
Add Tiny Core Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit authored and flexiondotorg committed Oct 19, 2023
1 parent 5ac9a57 commit c0a8fe2
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion quickget
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function pretty_name() {
reactos) PRETTY_NAME="ReactOS";;
rebornos) PRETTY_NAME="RebornOS";;
rockylinux) PRETTY_NAME="Rocky Linux";;
tinycore) PRETTY_NAME="Tiny Core Linux";;
truenas-core) PRETTY_NAME="TrueNAS Core";;
truenas-scale) PRETTY_NAME="TrueNAS Scale";;
ubuntu-budgie) PRETTY_NAME="Ubuntu Budgie";;
Expand Down Expand Up @@ -233,6 +234,7 @@ function os_support() {
slackware \
solus \
tails \
tinycore \
trisquel \
truenas-core \
truenas-scale \
Expand Down Expand Up @@ -617,6 +619,13 @@ function releases_tails() {
echo stable
}

function releases_tinycore() {
echo 14.0
}

function editions_tinycore() { echo Core TinyCore CorePlus CorePure64 TinyCorePure64
}

function releases_trisquel() {
echo 10.0.1 11.0
}
Expand Down Expand Up @@ -937,7 +946,7 @@ EOF
echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
batocera)
echo "disk_size=\"8G\"" >> "${CONF_FILE}";;
dragonflybsd|haiku|openbsd|netbsd|slackware|tails)
dragonflybsd|haiku|openbsd|netbsd|slackware|tails|tinycore)
echo "boot=\"legacy\"" >> "${CONF_FILE}";;
deepin)
echo "disk_size=\"64G\"" >> "${CONF_FILE}"
Expand Down Expand Up @@ -1799,6 +1808,21 @@ function get_tails() {
echo "${URL} ${HASH}"
}

function get_tinycore() {
local HASH=""
local ISO="${EDITION}-${RELEASE}.iso"
local URL=""

if [ "${EDITION}" == "Core" ] || [ "${EDITION}" == "TinyCore" ] || [ "${EDITION}" == "CorePlus" ]; then
URL="http://www.tinycorelinux.net/14.x/x86/release"
elif [ "${EDITION}" == "CorePure64" ] || [ "${EDITION}" == "TinyCorePure64" ]; then
URL="http://www.tinycorelinux.net/14.x/x86_64/release"
fi

HASH=$(wget -q -O- "${URL}/${ISO}.md5.txt" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}

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

0 comments on commit c0a8fe2

Please sign in to comment.