# Template file for 'kolibrios' OSNAME="kolibrios" PRETTY="KolibriOS" LOGO="" ICON="kolibrios.svg" ICON_ONLINE="" CATEGORY="Desktop, Old Computers, Live Medium, Netbooks" BASEDOF="-" DESCRIPTION="Tiny yet incredibly powerful and fast operating system" HOMEPAGE="http://kolibrios.org" CREDENTIALS="-" GPG="" RSS="" DW="" MAGNET="" MAGNET_PREFERRED="" TORRENT="" CHAT="" GUEST="kolibrios" RELEASES="latest" EDITIONS="en_US es_ES it_IT ru_RU" EDITIONS_LIST="en_US es_ES it_IT ru_RU" QEMU_ARCH="amd64" releases_() { echo latest } editions_() { echo en_US ru_RU it_IT es_ES } 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}" } extract_() { if [[ ${ISO} = *".7z" ]]; then 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 } config_() { echo "boot=\"legacy\"" >> "${CONF_FILE}" echo "disk_size=\"2G\"" >> "${CONF_FILE}" echo "ram=\"128M\"" >> "${CONF_FILE}" } releases_() { # Releases parsed at generation time — no network access needed. echo "${RELEASES}" } editions_() { # Editions parsed at generation time — no network access needed. local _scoped="" if [ -n "${RELEASE:-}" ] && declare -F _release_editions_ >/dev/null; then _scoped=$(_release_editions_ "${ARCH:-}|${RELEASE}") fi if [ -n "${_scoped}" ]; then echo "${_scoped}" return 0 fi local _per_arch="EDITIONS_${ARCH:-}" if [ -n "${!_per_arch:-}" ]; then echo "${!_per_arch}" return 0 fi echo "${EDITIONS:-}" }