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 Tiny Core Linux #760

Merged
merged 1 commit into from
Oct 19, 2023
Merged
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
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