quickemu/actions/tinycore

34 lines
883 B
Plaintext

# Template file for 'tinycore'
OSNAME="tinycore"
PRETTY="Tiny Core Linux"
BASEDOF="-"
HOMEPAGE="http://www.tinycorelinux.net"
DESCRIPTION="Highly modular based system with community build extensions"
CREDENTIALS="-"
function releases_() {
echo 15 14
}
function editions_() {
echo Core TinyCore CorePlus CorePure64 TinyCorePure64
}
function get_() {
local ARCH="x86"
local HASH=""
local ISO="${EDITION}-${RELEASE}.0.iso"
case "${EDITION}" in
*Pure*) ARCH+="_64";;
esac
# tinycorelinux.net not stable enough
#local URL="http://www.tinycorelinux.net/${RELEASE}.x/${ARCH}/release"
local URL="https://distro.ibiblio.org/tinycorelinux/${RELEASE}.x/${ARCH}/release"
HASH=$(web_pipe "${URL}/${ISO}.md5.txt" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}
function specific_tweaks() {
echo "boot=\"legacy\"" >> "${CONF_FILE}"
}