From 596ffa86a67e8e5fb1c9531eee8b9aca68511624 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 21 Feb 2022 16:41:26 +0000 Subject: [PATCH] Add netboot.xyz. Closes #351 --- README.md | 1 + quickget | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 92d2773..463b5d3 100644 --- a/README.md +++ b/README.md @@ -227,6 +227,7 @@ Other Operating Systems - `linuxmint` (Linux Mint) - `manjaro` (Manjaro) - `mxlinux` (MX Linux) +- `netboot` (netboot.xyz) - `nixos` (NixOS) - `openbsd` (OpenBSD) - `opensuse` (openSUSE) diff --git a/quickget b/quickget index 4de5f4a..8065112 100755 --- a/quickget +++ b/quickget @@ -51,6 +51,7 @@ function pretty_name() { kolibrios) PRETTY_NAME="KolibriOS";; linuxmint) PRETTY_NAME="Linux Mint";; mxlinux) PRETTY_NAME="MX Linux";; + netboot) PRETTY_NAME="netboot.xyz";; nixos) PRETTY_NAME="NixOS";; macos) PRETTY_NAME="macOS";; openbsd) PRETTY_NAME="OpenBSD";; @@ -180,6 +181,7 @@ function os_support() { linuxmint \ manjaro \ mxlinux \ + netboot \ nixos \ lubuntu \ macos \ @@ -361,6 +363,10 @@ function releases_manjaro() { mate } +function releases_netboot() { + echo latest +} + function releases_nixos(){ echo 21.05 \ 21.11 @@ -1119,6 +1125,17 @@ function get_mxlinux() { make_vm_config "${ISO}" } +function get_netboot() { + local ISO="netboot.xyz.iso" + local HASH="" + local URL="https://boot.netboot.xyz/ipxe" + + HASH=$(wget -q -O- "${URL}/netboot.xyz-sha256-checksums.txt" | grep "${ISO}" | cut -d' ' -f1) + web_get "${URL}/${ISO}" "${VM_PATH}" + check_hash "${ISO}" "${HASH}" + make_vm_config "${ISO}" +} + function get_nixos() { local EDITION="" local HASH=""