47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
# Template file for 'kolibrios'
|
|
OSNAME="kolibrios"
|
|
PRETTY="KolibriOS"
|
|
BASEDOF="-"
|
|
HOMEPAGE="http://kolibrios.org"
|
|
DESCRIPTION="Tiny yet incredibly powerful and fast operating system"
|
|
CREDENTIALS="-"
|
|
GUEST="kolibrios"
|
|
|
|
function releases_() {
|
|
echo latest
|
|
}
|
|
|
|
function editions_() {
|
|
echo en_US ru_RU it_IT es_ES
|
|
}
|
|
|
|
function get_() {
|
|
local HASH=""
|
|
if [ "${EDITION}" == 'it_IT' ]; then
|
|
# The it_IT build was disabled because nobody maintained it
|
|
local ISO="kolibrios-0.7.7.0%2B8797-9f5dd6c-iso.7z"
|
|
else
|
|
local ISO="latest-iso.7z"
|
|
fi
|
|
local URL="http://builds.kolibrios.org/${EDITION}"
|
|
echo "${URL}/${ISO} ${HASH}"
|
|
}
|
|
|
|
function distro_specific() {
|
|
if [[ ${ISO} = *".7z" ]]; then
|
|
if [ -z "$(command -v 7z)" ]; then echo $"ERROR! '7zip' needs installing. Unable to extract file."
|
|
else
|
|
7z e "${VM_PATH}/${ISO}" -o"${VM_PATH}" >/dev/null 2>&1
|
|
rm -f "${VM_PATH}/${ISO}"
|
|
ISO="$(ls -1 "${VM_PATH}/"*.iso)"
|
|
ISO="$(basename "${ISO}")"
|
|
fi
|
|
fi
|
|
}
|
|
|
|
function specific_tweaks() {
|
|
echo "boot=\"legacy\"" >> "${CONF_FILE}"
|
|
echo "disk_size=\"2G\"" >> "${CONF_FILE}"
|
|
echo "ram=\"128M\"" >> "${CONF_FILE}"
|
|
}
|