mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Add GhostBSD
Includes MATE and XFCE editions.
This commit is contained in:
parent
283927577e
commit
45eaaa08c2
3 changed files with 42 additions and 3 deletions
|
@ -220,6 +220,7 @@ Other Operating Systems
|
|||
- `freebsd` (FreeBSD)
|
||||
- `garuda` (Garuda Linux)
|
||||
- `gentoo` (Gentoo)
|
||||
- `ghostbsd` (GhostBSD)
|
||||
- `haiku` (Haiku)
|
||||
- `kali` (Kali)
|
||||
- `kdeneon` (KDE Neon)
|
||||
|
|
2
quickemu
2
quickemu
|
@ -470,7 +470,7 @@ function vm_boot() {
|
|||
CPU="${CPU},topoext"
|
||||
fi
|
||||
|
||||
if [ "${guest_os}" == "freebsd" ]; then
|
||||
if [ "${guest_os}" == "freebsd" ] || [ "${guest_os}" == "ghostbsd" ]; then
|
||||
MOUSE="usb-mouse"
|
||||
elif [ "${guest_os}" == "haiku" ]; then
|
||||
MACHINE_TYPE="pc"
|
||||
|
|
42
quickget
42
quickget
|
@ -47,6 +47,7 @@ function pretty_name() {
|
|||
elementary) PRETTY_NAME="elementary OS";;
|
||||
freebsd) PRETTY_NAME="FreeBSD";;
|
||||
garuda) PRETTY_NAME="Garuda Linux";;
|
||||
ghostbsd) PRETTY_NAME="GhostBSD";;
|
||||
kdeneon) PRETTY_NAME="KDE Neon";;
|
||||
kolibrios) PRETTY_NAME="KolibriOS";;
|
||||
linuxmint) PRETTY_NAME="Linux Mint";;
|
||||
|
@ -173,6 +174,7 @@ function os_support() {
|
|||
freebsd \
|
||||
garuda \
|
||||
gentoo \
|
||||
ghostbsd \
|
||||
haiku \
|
||||
kali \
|
||||
kdeneon \
|
||||
|
@ -330,6 +332,17 @@ function releases_gentoo(){
|
|||
echo latest
|
||||
}
|
||||
|
||||
function releases_ghostbsd(){
|
||||
echo 21.10.16 \
|
||||
21.11.24 \
|
||||
22.01.12
|
||||
}
|
||||
|
||||
function editions_ghostbsd(){
|
||||
echo mate \
|
||||
xfce
|
||||
}
|
||||
|
||||
function releases_haiku() {
|
||||
echo r1beta3
|
||||
}
|
||||
|
@ -675,8 +688,8 @@ function make_vm_config() {
|
|||
IMAGE_FILE="${1}"
|
||||
ISO_FILE="${2}"
|
||||
case "${OS}" in
|
||||
freebsd|openbsd)
|
||||
GUEST="bsd"
|
||||
freebsd|ghostbsd)
|
||||
GUEST="freebsd"
|
||||
IMAGE_TYPE="iso";;
|
||||
haiku)
|
||||
GUEST="haiku"
|
||||
|
@ -687,6 +700,9 @@ function make_vm_config() {
|
|||
macos)
|
||||
GUEST="macos"
|
||||
IMAGE_TYPE="img";;
|
||||
openbsd)
|
||||
GUEST="openbsd"
|
||||
IMAGE_TYPE="iso";;
|
||||
windows)
|
||||
GUEST="windows"
|
||||
IMAGE_TYPE="iso";;
|
||||
|
@ -977,6 +993,28 @@ function get_gentoo() {
|
|||
make_vm_config "${ISO}"
|
||||
}
|
||||
|
||||
function get_ghostbsd() {
|
||||
local EDITION=""
|
||||
local ISO=""
|
||||
local URL=""
|
||||
local HASH=""
|
||||
|
||||
if [ -n "${1}" ]; then
|
||||
EDITION="${1}"
|
||||
fi
|
||||
|
||||
case ${EDITION} in
|
||||
mate) ISO="GhostBSD-${RELEASE}.iso";;
|
||||
xfce) ISO="GhostBSD-${RELEASE}-XFCE.iso";;
|
||||
esac
|
||||
|
||||
URL="https://download.ghostbsd.org/releases/amd64/${RELEASE}"
|
||||
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f3)
|
||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||
check_hash "${ISO}" "${HASH}"
|
||||
make_vm_config "${ISO}"
|
||||
}
|
||||
|
||||
function get_haiku() {
|
||||
local EDITION=""
|
||||
local ISO=""
|
||||
|
|
Loading…
Reference in a new issue