26 lines
856 B
Bash
Executable File
26 lines
856 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script do the following:
|
|
# Download last Ubuntu LTS (14.04)
|
|
# Download Ubuntu 13.10
|
|
|
|
TFTP_ROOT="/var/lib/tftpboot"
|
|
|
|
# last Long Term Support distribution name
|
|
LTS="trusty"
|
|
|
|
for DISTRO in saucy ${LTS}; do
|
|
for ARCH in amd64 i386; do
|
|
mkdir -p ${TFTP_ROOT}/installer/ubuntu/${DISTRO}/${ARCH}
|
|
pushd ${TFTP_ROOT}/installer/ubuntu/${DISTRO}/${ARCH}
|
|
wget http://fr.archive.ubuntu.com/ubuntu/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/ubuntu-installer/${ARCH}/linux -O linux
|
|
wget http://fr.archive.ubuntu.com/ubuntu/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/ubuntu-installer/${ARCH}/initrd.gz -O initrd.gz
|
|
popd
|
|
done
|
|
done
|
|
|
|
# Link the LTS distribution name to lts
|
|
unlink ${TFTP_ROOT}/installer/ubuntu/lts
|
|
ln -s ${LTS} ${TFTP_ROOT}/installer/ubuntu/lts
|
|
###########################
|