#!/bin/bash
# getdeb6: Download Debian 6 DVD images
# Tip: run it over screen session
_bit="${1:-64}"
_arch="i386"
_base="http://cdimage.debian.org/debian-cd/6.0.0/i386/iso-dvd"
[ "$_bit" == "64" ] && { _base="http://cdimage.debian.org/debian-cd/6.0.0/amd64/iso-dvd"; _arch="amd64"; }
echo "Downloading Debian Linux v6.0 ${_bit} bit DVD..."
for i in {1..8}
do
# build image path
_image="${_base}/debian-6.0.0-${_arch}-DVD-${i}.iso"
wget -c $_image
done