#!/bin/sh

MIRROR=http://archive.ubuntu.com/
DISTRO=ubuntu
VERSION=jaunty
ARCH=i386
TFTPBOOT=/tftpboot

URL={MIRROR}/${DISTRO}/dists/${VERSION}/main/installer-${ARCH}/current/images/netboot/${DISTRO}-installer/${ARCH}/

mkdir -p ${TFTPBOOT}/pxelinux.cfg
mkdir -p ${TFTPBOOT}/${DISTRO}/${VERSION}/${ARCH}

wget -O ${TFTPBOOT}/pxelinux.0 ${URL}/pxelinux.0
wget -O ${TFTPBOOT}/${DISTRO}/${VERSION}/${ARCH}/linux ${URL}/linux
wget -O ${TFTPBOOT}/${DISTRO}/${VERSION}/${ARCH}/initrd.gz ${URL}/initrd.gz
