Skip to content

Commit

Permalink
Add GhostBSD
Browse files Browse the repository at this point in the history
Includes MATE and XFCE editions.
  • Loading branch information
flexiondotorg committed Feb 21, 2022
1 parent 2839275 commit 45eaaa0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ Other Operating Systems
- `freebsd` (FreeBSD)
- `garuda` (Garuda Linux)
- `gentoo` (Gentoo)
- `ghostbsd` (GhostBSD)
- `haiku` (Haiku)
- `kali` (Kali)
- `kdeneon` (KDE Neon)
Expand Down
2 changes: 1 addition & 1 deletion quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
42 changes: 40 additions & 2 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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";;
Expand Down Expand Up @@ -173,6 +174,7 @@ function os_support() {
freebsd \
garuda \
gentoo \
ghostbsd \
haiku \
kali \
kdeneon \
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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"
Expand All @@ -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";;
Expand Down Expand Up @@ -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=""
Expand Down

1 comment on commit 45eaaa0

@philclifford
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.