Created
February 9, 2017 10:19
-
-
Save ochko/a3fab6b9483ad0bb1750efbb82d41264 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curlget() { | |
url=http://ftp5.usa.openbsd.org/pub/OpenBSD/$1/i386 | |
echo $2 | |
curl -O -# $url/$2 | |
} | |
download() { | |
# 5.6 -> 56 | |
num=$(echo $1 | cut -c1,3) | |
curlget $1 bsd | |
curlget $1 bsd.rd | |
for name in base comp man xbase xshare xfont xserv; do | |
curlget $1 $name$num.tgz | |
done | |
} | |
mkdir -p 5.7/i386 && cd 5.7/i386 && echo ">>> 5.7" && { download $mirror 5.7 ; cd -; } | |
mkdir -p 5.8/i386 && cd 5.8/i386 && echo ">>> 5.8" && { download $mirror 5.8 ; cd -; } | |
mkdir -p 5.9/i386 && cd 5.9/i386 && echo ">>> 5.9" && { download $mirror 5.9 ; cd -; } | |
mkdir -p 6.0/i386 && cd 6.0/i386 && echo ">>> 6.0" && { download $mirror 6.0 ; cd -; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment