Skip to content

Instantly share code, notes, and snippets.

@casjay
Last active January 21, 2022 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save casjay/4c607aa28168b5be9d3343058006b712 to your computer and use it in GitHub Desktop.
Save casjay/4c607aa28168b5be9d3343058006b712 to your computer and use it in GitHub Desktop.
distiso_functions
#!/bin/bash
# Download functions and commands
wgetcmd () {
echo "Downloading $new to $output"
wget -q --show-progress -c "$new" -O "$output" -o /dev/null
}
# Function to only get filesize
getsize () {
abc=$(wget --spider $new 2>&1)
y=$(echo $abc | awk -F"Length:" '{ print $2 }' | awk -F"[" '{ print $1 }')
ss=$(ls -l -B $output | awk -F" " '{ print $5 }')
sh=$(ls -lh $output | awk -F" " '{ print $5 }')
printf "File: $new has size: $y while on disk it is $output - $ss ($sh) \n"
}
# This can be adopted for using torrents instead of direct HTTP/FTP files
# ariacmd () { aria2c --seed-time=0 -c $new; } # Set seeding time after downloading to zero ( this is sad :-( remove --seed-time=0 if you like to seed :-) )
# Other functions
notlive () {
echo " / / ---------------------------------------------------------------------- \ \ "
echo " | | Note: this is not a live disk (it'll require further installation). | | "
echo " \ \ -----------------------------------------------------------------------/ / "
}
notlinux () {
echo " / / ------------------------------------------------------------------------------------- \ \ "
echo " | | Note: this isn't actually linux. It was included as it's important opensource project | | "
echo " \ \ --------------------------------------------------------------------------------------/ / "
}
empty () {
echo "The file $output is empty. Please download it first." # This function does nothing
}
checkfile () {
if [ "$1" == "filesize" ]; then
[ -s $output ] && getsize || empty
else
wgetcmd
fi
}
# Update latest distro URL functions
archurl () {
mirror="http://mirrors.evowise.com/archlinux/iso/latest/"
x=$(curl -s $mirror | grep -m1 archlinux- | awk -F".iso" '{ print $1 }' | awk -F\" '{ print $2 }');
new="$mirror/$x.iso"
output="archlinux.iso"
checkfile $1
}
manjarourl () {
mirror="https://manjaro.org/downloads/official/xfce/"
x=$(curl -s $mirror | grep -m1 iso | awk -F\" '{ print $2 }')
new="$x"
output="manjaro.iso"
checkfile $1
}
arcourl () {
mirror="https://bike.seedhost.eu/arcolinux/iso/"
x=$(curl -s $mirror | grep -m1 arcolinux- | awk -F">" '{ print $3 }' | awk -F"<" '{ print $1 }')
new="$mirror/$x"
output="arcolinux.iso"
checkfile $1
}
archbangurl () {
mirror="https://sourceforge.net/projects/archbang/files/latest/download"
new="$mirror"
output="archbang.iso"
checkfile $1
}
parabolaurl () {
mirror="https://wiki.parabola.nu/Get_Parabola"
x=$(curl -s $mirror | grep systemd | grep lxde | grep ".iso" | grep Web | awk -F"redirector" '{ print $2 }' | awk -F\" '{ print $1 }')
new="https://redirector$x"
output="parabola.iso"
checkfile $1
}
endeavoururl () {
mirror="https://sourceforge.net/projects/endeavouros-repository/files/latest/download"
new="$mirror"
output="endeavour.iso"
checkfile $1
}
artixurl () {
mirror="https://mirrors.dotsrc.org/artix-linux/iso/"
x=$(curl -s $mirror | grep mate-openrc | head -1 | awk -F\" '{ print $2 }')
new="$mirror/$x"
output="artix.iso"
checkfile $1
}
arcourl () {
mirror="https://sourceforge.net/projects/arcolinux/files/latest/download"
new="$mirror"
output="arco.iso"
checkfile $1
}
garudaurl () {
mirror="https://sourceforge.net/projects/garuda-linux/files/latest/download"
new="$mirror"
output="garuda.iso"
checkfile $1
}
rebornurl () {
mirror="https://sourceforge.net/projects/rebornos/files/latest/download"
new="$mirror"
output="rebornos.iso"
checkfile $1
}
archlabsurl () {
mirror="https://sourceforge.net/projects/archlabs-linux-minimo/files/latest/download"
new="$mirror"
output="archlabs.iso"
checkfile $1
}
namiburl () {
mirror="https://sourceforge.net/projects/namib-gnu-linux/files/latest/download"
new="$mirror"
output="namib.iso"
checkfile $1
}
obarunurl () {
mirror="https://repo.obarun.org/iso/"
x=$(curl -s $mirror | grep "<tr><td" | tail -1 | awk -F"href=\"" '{ print $2 }' | awk -F"/" '{ print $1 }')
y=$(curl -s $mirror/$x/ | grep obarun | head -1 | awk -F"href=\"" '{ print $2 }' | awk -F\" '{ print $1 }')
new="$mirror/$x/$y"
output="obarun.iso"
checkfile $1
}
archcrafturl () {
mirror="https://sourceforge.net/projects/archcraft/files/latest/download"
new="$mirror"
output="archcraft.iso"
checkfile $1
}
cutefishosurl () {
echo "At the time of adding, download wasn't still available."
echo "Currently this is place-holder."
echo "You can visit https://cutefishos.com/download to check if there is a release."
echo "Also you can use test out this set of packages: https://archlinux.org/packages/?q=cutefish"
echo "Please select N when asked about VM spinning as nothing was downloaded! Thanks."
}
peuxurl () {
echo "Peux OS is delivered only as a torrent. Please download it with your favourite torrent "
echo "client into the script folder to run in a VM: "
echo "https://fosstorrents.com/files/download.php?file=peux_os_xfce-stable_21.01-x86_64.iso.torrent"
echo "After downloading you can type Y to run VM. "
}
debianurl () {
x="https://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-dvd/debian-testing-amd64-DVD-1.iso"
new="$x"
output="debian.iso"
notlive
checkfile $1
}
ubuntuurl () {
mirror="http://cdimage.ubuntu.com/daily-live/current/"
x=$(curl -s $mirror | grep -m1 desktop-amd64.iso | awk -F\" '{ print $2 }' | awk -F\" '{ print $1 }')
new="$mirror/$x"
output="ubuntu.iso"
checkfile $1
}
minturl () {
mirror="https://linuxmint.com/download.php"
x=$(curl -s $mirror | grep "latest release" | awk -F"Mint" '{ print $2 }' | awk -F"," '{ print $1 }' | xargs)
new="http://mirrors.evowise.com/linuxmint/stable/$x/linuxmint-$x-cinnamon-64bit.iso"
output="linuxmint.iso"
checkfile $1
}
alturl () {
x="http://mirror.yandex.ru/altlinux-nightly/current/regular-cinnamon-latest-x86_64.iso"
new="$x"
output="altlinux.iso"
checkfile $1
}
zorinurl () {
mirror="https://sourceforge.net/projects/zorin-os/files/latest/download"
new="$mirror"
output="zorinos.iso"
checkfile $1
}
solusurl () {
mirror="https://getsol.us/download/"
x=$(curl -s $mirror | grep -m1 iso | awk -F\" '{ print $2 }')
new="$x"
output="solus.iso"
checkfile $1
}
popurl () {
# Requires: xpath (perl xml xpath package)
echo "Warning! This requires xpath! For ArchLinux, run 'sudo pacman -S perl-xml-xpath'"
wget -q https://pop-iso.sfo2.cdn.digitaloceanspaces.com -O pop.xml
xpath -q -e '/ListBucketResult/Contents/Key' pop.xml > nodes.txt
x=$(cat nodes.txt | grep intel_13.iso | head -1 | awk -F"<Key>" '{ print $2 }' | awk -F"</Key>" '{ print $1 }')
new="https://pop-iso.sfo2.cdn.digitaloceanspaces.com/$x"
rm pop.xml nodes.txt
output="popos.iso"
checkfile $1
}
deepinurl () {
mirror="https://sourceforge.net/projects/deepin/files/latest/download"
new="$mirror"
output="deepin.iso"
notlive
checkfile $1
}
mxurl () {
mirror="https://sourceforge.net/projects/mx-linux/files/latest/download"
new="$mirror"
output="mxlinux.iso"
checkfile $1
}
knoppixurl () {
mirror="http://mirror.yandex.ru/knoppix/DVD/"
x=$(curl -s $mirror | grep -m1 EN.iso | awk -F">" '{ print $2 }' | awk -F"<" '{ print $1 }')
new="$mirror/$x"
output="knoppix.iso"
checkfile $1
}
kaliurl () {
mirror="http://cdimage.kali.org/kali-weekly/"
x=$(curl -s $mirror | grep -m1 live-amd64.iso | awk -F">" '{ print $7 }' | awk -F"<" '{ print $1 }')
new="$mirror/$x"
output="kali.iso"
checkfile $1
}
puppyurl () {
mirror="http://distro.ibiblio.org/puppylinux/puppy-bionic/bionicpup64/"
x=$(curl -s $mirror | grep -m1 uefi.iso | awk -F">" '{ print $4 }' | awk -F"<" '{ print $1 }')
new="$mirror/$x"
output="puppy.iso"
checkfile $1
}
pureurl () {
mirror="https://downloads.pureos.net/amber/live/gnome/"
#dd=$(date +%Y)
dd="202"
one=$(curl -s $mirror | grep $dd | tail -1 | awk -F\" '{ print $2 }')
two=$(curl -s $mirror/$one | grep "hybrid.iso<" | awk -F\" '{ print $2 }')
new="$mirror/$one/$two"
output="pureos.iso"
checkfile $1
}
elementurl () {
mirror="https://elementary.io"
one=$(curl -s $mirror 2>&1 | grep -m1 download-link | awk -F"//" '{ print $2 }' | awk -F\" '{ print $1 }')
new="$one"
output="elementaryos.iso"
checkfile $1
}
backboxurl () {
mirror="https://bit.ly/2yNWmF3"
new="$mirror"
output="backbox.iso"
checkfile $1
}
devuanurl () {
mirror="http://mirror.serverion.com/devuan/devuan_beowulf/desktop-live/"
x="devuan$(curl -s $mirror | grep amd64 | awk -F"devuan" '{ print $2 }' | awk -F\" '{ print $1 }')"
new="$mirror$x"
output="devuan.iso"
checkfile $1
}
jingosurl () {
mirror="https://download.jingos.com/os/JingOS-V0.9-a25ea3.iso"
new="$mirror"
output="jingos.iso"
checkfile $1
}
fedoraurl () {
one=$(curl -s "https://getfedora.org/en/workstation/download/" | html2text | grep -a4 "x86_64 DVD ISO" | tail -2)
one=${one//$'\n'/}
new=$(echo $one | awk -F"(" '{ print $2 }' | awk -F")" '{ print $1 }')
# Legacy
#mirror="https://www.happyassassin.net/nightlies.html"
#x=$(curl -s $mirror | grep -m1 Fedora-Workstation-Live-x86_64-Rawhide | awk -F\" '{ print $4 }')
#new="$x"
output="fedora.iso"
checkfile $1
}
centosurl () {
mirrorone="https://www.centos.org/centos-stream/"
one=$(curl -s $mirrorone | grep x86_64 | awk -F\" '{ print $2 }' | awk -F"/" '{ print $5 }')
mirror="http://mirror.yandex.ru/centos/$one/isos/x86_64/"
x=$(curl -s $mirror | grep -m1 dvd1 | awk -F\" '{ print $2 }' | awk -F\" '{ print $1 }')
new="$mirror/$x"
output="centos.iso"
notlive
checkfile $1
}
suseurl () {
mirrorone="https://get.opensuse.org/leap"
one=$(curl -s $mirrorone | html2text | grep -m1 -a3 "Offline Image" | tail -2)
one=${one//$'\n'/}
new=$(echo $one | awk -F"(" '{ print $2 }' | awk -F")" '{ print $1 }')
output="opensuse.iso"
checkfile $1
# Legacy
#mirrorone="https://software.opensuse.org/distributions/leap"
#one=$(curl -s $mirrorone | grep -m1 "openSUSE Leap" | awk -F"Leap" '{ print $2 }' | awk -F"<" '{ print $1 }' | xargs)
#mirror="http://mirror.yandex.ru/opensuse/distribution/leap/$one/iso/"
#x=$(curl -s $mirror | grep -m1 "x86_64.iso" | awk -F\" '{ print $2 }')
#new="$mirror/$x"
}
rosaurl () {
mirror="https://www.rosalinux.ru/rosa-linux-download-links/"
x="$(curl -s $mirror | grep -A3 -m1 KDE4 | grep 64-bit | awk -F\" '{ print $4 }')"
new="$x"
output="rosa.iso"
checkfile $1
}
mandrivaurl () {
mirror="https://sourceforge.net/projects/openmandriva/files/latest/download"
new="$mirror"
output="mandriva.iso"
checkfile $1
}
mageiaurl () {
mirror="http://mirror.yandex.ru/mageia/iso/8/"
one=$(curl -s $mirror | grep "href=\"mageia" | awk -F">" '{ print $2 }' | awk -F"<" '{ print $1 }')
two=$(curl -s $mirror/$one | grep Plasma | awk -F">" '{ print $2 }' | awk -F"<" '{ print $1 }')
x=$(curl -s $mirror/$one/$two | grep ".iso\"" | awk -F\" '{ print $2 }')
new="$mirror/$one/$two/$x"
output="mageia.iso"
checkfile $1
}
clearosurl () {
mirror="https://www.clearos.com/products/purchase/clearos-downloads"
one=$(curl -s $mirror | grep -m1 ".iso\"")
two=${one%.iso*}
two=${two#*http://}.iso
link="https://$two"
new=$(curl -s "$link" | grep window.open | awk -F\' '{ print $2 }')
#new="$(cat ClearOS*iso | grep -m1 .iso | awk -F\' '{ print $2 }')"
output="clearos.iso"
#rm ${two#*http://}.iso
notlive
checkfile $1
}
almaurl () {
mirror="https://mirrors.almalinux.org"
one=$(curl -s $mirror/isos.html | html2text | grep -m1 x86_64 | awk -F'(' '{ print $2 }' | awk -F')' '{ print $1 }')
two=$(curl -s $mirror$one | html2text | grep -A2 Norway | grep -m1 isos | awk -F'(' '{ print $2 }' | awk -F')' '{ print $1 }')
three=$(curl -s $two/ | grep -m1 dvd | awk -F'>' '{ print $2 }' | awk -F'<' '{ print $1 }')
new="$two/$three"
output="alma.iso"
checkfile $1
}
rockyurl () {
mirror="https://rockylinux.org/download"
new=$(curl -s $mirror | html2text | grep -m1 DVD | awk -F'(' '{ print $2 }' | awk -F')' '{ print $1 }')
output="rocky.iso"
checkfile $1
}
alpineurl () {
mirrorone="https://alpinelinux.org/downloads/"
one=$(curl -s $mirrorone | grep Current | awk -F">" '{ print $3 }' | awk -F"<" '{ print $1 }')
shortv=$(echo $one | awk -F"." '{ print $1"."$2}')
x="http://dl-cdn.alpinelinux.org/alpine/v$shortv/releases/x86_64/alpine-extended-$one-x86_64.iso"
new="$x"
output="alpine.iso"
checkfile $1
}
tinycoreurl () {
mirrorone="http://tinycorelinux.net/downloads.html"
one=$(curl -s $mirrorone | grep TinyCore-current.iso | awk -F\" '{ print $2 }')
mirror="http://tinycorelinux.net/"
new="$mirror/$one"
output="tinycore.iso"
checkfile $1
}
porteusurl () {
mirrorone="https://porteus-kiosk.org/download.html"
one=$(curl -s $mirrorone | grep "Porteus-Kiosk.*x86_64.iso" | grep -m1 public| awk -F\" '{ print $2 }')
mirror="https://porteus-kiosk.org/"
new="$mirror/$one"
output="porteus.iso"
checkfile $1
}
slitazurl () {
x="http://mirror.slitaz.org/iso/rolling/slitaz-rolling-core64.iso"
new="$x"
output="slitaz.iso"
checkfile $1
}
pclinuxosurl () {
mirror="http://ftp.nluug.nl/pub/os/Linux/distr/pclinuxos/pclinuxos/live-cd/64bit/"
x="pclinuxos$(curl -s $mirror | grep -m1 .iso | awk -F"pclinuxos" '{ print $2 }' | awk -F\" '{ print $1 }')"
new="$mirror$x"
output="pclinuxos.iso"
checkfile $1
}
voidurl () {
mirror="https://alpha.de.repo.voidlinux.org/live/current/"
x=$(curl -s $mirror | grep "live" | grep -m1 "x86_64" | awk -F">" '{ print $2 }' | awk -F"<" '{ print $1 }')
new="$mirror/$x"
output="void.iso"
checkfile $1
}
fourmurl () {
mirror="https://sourceforge.net/projects/linux4m/files/latest/download"
new="$mirror"
output="4mlinux.iso"
checkfile $1
}
kaosurl () {
mirror="https://sourceforge.net/projects/kaosx/files/latest/download"
new="$mirror"
output="kaos.iso"
checkfile $1
}
clearurl () {
mirror="https://clearlinux.org/downloads"
x=$(curl -s $mirror | grep live | grep -m1 iso | awk -F\" '{ print $2 }')
new="$x"
output="clearlinux.iso"
checkfile $1
}
dragoraurl () {
mirror="http://rsync.dragora.org/current/iso/beta/"
x=$(curl -s $mirror | grep -m1 x86_64 | awk -F\' '{ print $2 }')
new="$mirror$x"
output="dragora.iso"
checkfile $1
}
slackwareurl () {
mirror="https://mirrors.slackware.com/slackware/slackware-iso/"
x=$(curl -s $mirror | grep slackware64 | tail -1 | awk -F"slack" '{ print $2 }' | awk -F"/" '{ print $1 }')
other="slack$x"
y=$(curl -s "$mirror/$other/" | grep dvd.iso | head -1 | awk -F"slack" '{ print $2 }' | awk -F\" '{ print $1 }')
new="$mirror"; new+="$other"; new+="/slack"; new+="$y"
echo "new=$new"
output="slackware.iso"
checkfile $1
}
adelieurl () {
mirror="https://www.adelielinux.org/download/"
x=$(curl -s $mirror | grep -A4 Live | grep iso | awk -F"https://" '{ print $2 }' | awk -F\" '{ print $1 }')
new="https://$x"
output="adelie.iso"
checkfile $1
}
plopurl () {
mirror=""
x="$(curl -s https://www.plop.at/en/ploplinux/downloads/full.html | grep x86_64.iso | head -1 | awk -F"https://" '{ print $2 }' | awk -F".iso" '{ print $1 }')"
new="https://$x.iso"
output="plop.iso"
checkfile $1
}
gentoourl () {
mirror="https://gentoo.c3sl.ufpr.br//releases/amd64/autobuilds"
one=$(curl -s "$mirror/latest-iso.txt" | grep "admin" | awk '{ print $1 }')
new="$mirror/$one"
output="gentoo.iso"
notlive
checkfile $1
}
sabayonurl () {
mirror="https://www.sabayon.org/desktop/"
new=$(curl -s $mirror | grep GNOME.iso | head -1 | awk -F"http://" '{ print $2 }' | awk -F\" '{ print $1 }')
output="sabayon.iso"
checkfile $1
}
calcurl () {
mirror="http://mirror.yandex.ru/calculate/nightly/"
x=$(curl -s $mirror | grep "<a" | tail -1 | awk -F">" '{ print $2 }' | awk -F"<" '{ print $1 }')
mirror+=$x
x=$(curl -s $mirror | grep -m1 cldc | awk -F\" '{ print $2 }')
new="$mirror$x"
output="calculate.iso"
checkfile $1
}
nixurl () {
mirror="https://channels.nixos.org/nixos-unstable"
saved=$(curl -sL $mirror)
dir=$(echo $saved | awk -F"nixos" '{ print $26 }')
file=$(echo $saved | awk -F"nixos" '{ print $28 }' | awk -F".iso" '{ print $1 }')
result="nixos"; result+=$dir; result+="nixos"; result+=$file
x="https://releases.nixos.org/nixos/unstable/$result.iso"
new="$x"
output="nixos.iso"
notlive
checkfile $1
}
guixurl () {
mirror="https://guix.gnu.org/en/download/"
x=$(curl -s $mirror | grep ".iso" | awk -F"https://" '{ print $2 }' | awk -F\" '{ print $1 }')
new="https://$x"
output="guix.iso.xz"
notlive
checkfile $1
[ -f "guix.iso" ] && echo "Please wait, unpacking guix..." && xz -k -d -v ./guix*xz && mv guix*iso guix.iso
}
rancherurl () {
mirror="https://github.com/rancher/os/releases/latest"
x=$(curl -s -L $mirror | grep -m1 rancheros.iso | awk -F\" '{ print $2 }')
new="https://github.com$x"
output="rancheros.iso"
checkfile $1
}
k3osurl () {
mirror="https://github.com/rancher/k3os/releases/latest"
x=$(curl -s -L $mirror | grep -m1 k3os-amd64.iso | awk -F\" '{ print $2 }')
new="https://github.com$x"
output="k3os.iso"
checkfile $1
}
flatcarurl () {
mirror="https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_production_iso_image.iso"
new="$mirror"
output="flatcar.iso"
checkfile $1
}
silverblueurl () {
mirror="https://silverblue.fedoraproject.org/download"
x=$(curl -s $mirror | grep -m1 x86_64 | awk -F\' '{ print $2 }')
new="$x"
output="silverblue.iso"
checkfile $1
}
photonurl () {
mirror="https://github.com/vmware/photon/wiki/Downloading-Photon-OS"
x=$(curl -s $mirror | grep -m1 "Full ISO" | awk -F\" '{ print $2 }')
new="$x"
output="photonos.iso"
notlive
checkfile $1
}
coreosurl () {
mirror="https://builds.coreos.fedoraproject.org/streams/next.json"
x=$(curl -s $mirror | grep iso | grep location | awk -F\" '{ print $4 }')
new="$x"
output="coreos.iso"
checkfile $1
}
freebsdurl () {
mirror="https://www.freebsd.org/where/"
x=$(curl -s $mirror | grep -m1 "amd64/amd64" | awk -F\" '{ print $2 }')
one=$(curl -s $x | grep -m1 dvd1 | awk -F"FreeBSD" '{ print $2 }' | awk -F\" '{ print $1 }')
new=$x; new+="FreeBSD"; new+=$one;
output="freebsd.iso"
notlinux
checkfile $1
}
netbsdurl () {
mirror="https://www.netbsd.org/"
#mirror="https://wiki.netbsd.org/ports/amd64/"
new=$(curl -s $mirror | grep -m1 "CD" | awk -F\" '{ print $4 }')
output="netbsd.iso"
notlinux
checkfile $1
}
openbsdurl () {
mirror="https://www.openbsd.org/faq/faq4.html"
new=$(curl -s $mirror | grep -m1 -e 'iso.*amd64' | awk -F\" '{ print $2 }')
output="openbsd.iso"
notlinux
checkfile $1
}
ghostbsdurl () {
mirror="http://download.fr.ghostbsd.org/development/amd64/latest/"
x=$(curl -s $mirror | grep ".iso<" | tail -1 | awk -F\" '{ print $2 }')
new="$mirror$x"
output="ghostbsd.iso"
notlinux
checkfile $1
}
hellosystemurl () {
# https://github.com/helloSystem/ISO/releases/download/r0.5.0/hello-0.5.0_0E223-FreeBSD-12.2-amd64.iso
mirror="https://github.com/helloSystem/ISO/releases/latest"
x=$(curl -s -L $mirror | grep FreeBSD | grep -m1 iso | awk -F\" '{ print $2 }')
new="https://github.com$x"
output="hellosystem.iso"
notlinux
checkfile $1
}
indianaurl () {
mirror="https://www.openindiana.org/download/"
x=$(curl -s $mirror | grep "Live DVD" | awk -F"http://" '{ print $2 }' | awk -F\" '{ print $1 }')
new="http://$x"
output="openindiana.iso"
notlinux
checkfile $1
}
minixurl () {
mirror="https://wiki.minix3.org/doku.php?id=www:download:start"
x=$(curl -s $mirror | grep -m1 iso.bz2 | awk -F"http://" '{ print $2 }' | awk -F\" '{ print $1 }')
new="http://$x"
output="minix.iso.bz2"
if [ "$1" == "filesize" ]; then
notlinux
notlive
getsize
else
[ ! -f $output ] && wgetcmd && echo "Please wait, unpacking minix..." && bzip2 -k -d $output || echo "Minix already downloaded."
fi
}
haikuurl () {
mirror="https://download.haiku-os.org/nightly-images/x86_64/"
x=$(curl -s $mirror | grep -m1 zip | awk -F\" '{ print $2 }')
new="$x"
output="haiku.zip"
if [ "$1" == "filesize" ]; then
notlinux
getsize
else
[ ! -f $output ] && wgetcmd && echo "Please wait, unzipping haiku..." && unzip haiku.zip && rm ReadMe.md && mv haiku*iso haiku.iso || echo "Haiku already downloaded."
fi
}
menueturl () {
mirror="http://www.menuetos.be/download.php?CurrentMenuetOS"
new="$mirror"
output="menuetos.zip"
if [ "$1" == "filesize" ]; then
notlinux
getsize
else
[ ! -f $output ] && wgetcmd && echo "Wait, unzipping menuetos..." && unzip menuetos.zip && mv M64*.IMG menuetos.img || echo "Menuet already downloaded."
fi
}
kolibrios () {
mirror="http://builds.kolibrios.org/eng/latest-iso.7z"
new="$mirror"
output="kolibrios.7z"
if [ "$1" == "filesize" ]; then
notlinux
getsize
else
[ ! -f $output ] && wgetcmd && echo "Un7zipping kolibri..." && 7z x kolibrios.7z && mv kolibri.iso kolibrios.iso || echo "Kolibri already downloaded."
fi
}
reactosurl () {
mirror="https://sourceforge.net/projects/reactos/files/latest/download"
new="$mirror"
output="reactos.zip"
if [ "$1" == "filesize" ]; then
notlinux
getsize
else
[ ! -f $output ] && wgetcmd && echo "Please wait, unzipping reactos..." && unzip reactos.zip && mv React*iso reactos.iso || echo "Menuet already downloaded."
fi
}
freedosurl () {
#mirror="https://sourceforge.net/projects/freedos/files/latest/download"
mirror="https://www.freedos.org/download/download/FD12CD.iso"
new="$mirror"
output="freedos.iso"
notlinux
checkfile $1
}
netbootxyz () {
mirror="https://boot.netboot.xyz/ipxe/netboot.xyz.iso"
new="$mirror"
output="netboot.xyz.iso"
checkfile $1
}
netbootsal () {
mirror="http://boot.salstar.sk/ipxe/ipxe.iso"
new="$mirror"
output="ipxe.iso"
checkfile $1
}
# this one is currently broken
netbootipxe () {
#mirror="http://cloudboot.nchc.org.tw/cloudboot/cloudboot_img/cloudboot_1.0.iso"
mirror="http://boot.ipxe.org/ipxe.iso"
new="$mirror"
output="bootipxe.iso"
checkfile $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment