From: spam on 23 Jan 2010 07:27 Here is an example script to download NetBSD 5.0.1 Unfortunately it has wrapped in the news post. The shell doesn't care about long lines. You may want to change the mirror. It checks the MD5 sums, and you should see no output from the diff. I ran this from Linux with bash, wget, and mkisofs, so you will need these or modify it for what you have. #!/bin/bash if [ ! -f INSTALL.html ]; then wget ftp://iso7.us.netbsd.org/pub/NetBSD/NetBSD-5.0.1/i386/INSTALL.html fi mkdir CD cd CD URL='ftp://iso7.us.netbsd.org/pub/NetBSD/NetBSD-5.0.1/i386/binary/ sets/' for X in xserver.tgz misc.tgz base.tgz BSDSUM CKSUM MD5 SHA512 SYSVSUM kern-GENERIC.tgz comp.tgz etc.tgz games.tgz kern-XEN3PAE_DOMU.tgz kern- XEN2_DOM0.tgz kern-XEN2_DOMU.tgz kern-XEN3_DOM0.tgz kern-XEN3_DOMU.tgz tests.tgz text.tgz xbase.tgz xcomp.tgz xetc.tgz xfont.tgz man.tgz do if [ ! -f ${X} ]; then wget ${URL}${X} fi done md5sum `cat MD5 | awk '{print $2}' | sed -e 's/[(,)]//g'` | awk '{print "MD5 ("$2") = "$1}' > MD5.download diff MD5 MD5.download | more rm MD5.download URL=http://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0/i386/binary/kernel/ URL=ftp://iso7.us.netbsd.org/pub/NetBSD/NetBSD-5.0.1/i386/binary/ kernel/ mkdir kernel cd kernel for X in BSDSUM CKSUM MD5 SHA512 SYSVSUM netbsd-GENERIC.gz netbsd- GENERIC.symbols.gz netbsd-INSTALL_FLOPPY.gz netbsd- INSTALL_FLOPPY.symbols.gz netbsd-INSTALL_XEN2_DOMU.gz netbsd- INSTALL_XEN3PAE_DOMU.gz netbsd-INSTALL_XEN3_DOMU.gz netbsd- XEN2_DOM0.gz netbsd-XEN2_DOMU.gz netbsd-XEN3PAE_DOMU.gz netbsd- XEN3_DOM0.gz netbsd-XEN3_DOMU.gz do if [ ! -f ${X} ]; then wget ${URL}${X} fi done md5sum `cat MD5 | awk '{print $2}' | sed -e 's/[(,)]//g'` | awk '{print "MD5 ("$2") = "$1}' > MD5.download diff MD5 MD5.download | more rm MD5.download cd .. pwd URL=ftp://iso7.us.netbsd.org/pub/NetBSD/NetBSD-5.0.1/source/sets/ mkdir -p source/sets cd source/sets for X in BSDSUM CKSUM MD5 SHA512 SYSVSUM gnusrc.tgz sharesrc.tgz src.tgz syssrc.tgz xsrc.tgz do if [ ! -f ${X} ]; then wget ${URL}${X} fi done md5sum `cat MD5 | awk '{print $2}' | sed -e 's/[(,)]//g'` | awk '{print "MD5 ("$2") = "$1}' > MD5.download diff MD5 MD5.download | more rm MD5.download cd ../../.. pwd mkisofs -R -o NetBSD.5.0.1.iso CD echo "Check sums for correct download!" if [ ! -f boot.iso ]; then wget http://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0.1/i386/installation/cdrom/boot.iso fi for X in 1 2 do wget http://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0.1/i386/installation/floppy/boot${X}.fs done
From: spam on 23 Jan 2010 07:49 To download the script go to http://www.gnostheos.org/wget.netbsd.5.0.1.sh
|
Pages: 1 Prev: FreeBSD Rel 8.0 build failure Next: make delete-old-libs, now missing |