Skip to content

Commit

Permalink
Add netboot.xyz. Closes #351
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Feb 21, 2022
1 parent b9ca7a3 commit 596ffa8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ Other Operating Systems
- `linuxmint` (Linux Mint)
- `manjaro` (Manjaro)
- `mxlinux` (MX Linux)
- `netboot` (netboot.xyz)
- `nixos` (NixOS)
- `openbsd` (OpenBSD)
- `opensuse` (openSUSE)
Expand Down
17 changes: 17 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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";;
Expand Down Expand Up @@ -180,6 +181,7 @@ function os_support() {
linuxmint \
manjaro \
mxlinux \
netboot \
nixos \
lubuntu \
macos \
Expand Down Expand Up @@ -361,6 +363,10 @@ function releases_manjaro() {
mate
}

function releases_netboot() {
echo latest
}

function releases_nixos(){
echo 21.05 \
21.11
Expand Down Expand Up @@ -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=""
Expand Down

1 comment on commit 596ffa8

@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.