Skip to content

Commit

Permalink
tweaks to use full release 12.04, and curl
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlygeek committed Apr 26, 2012
1 parent 586c4fd commit d74427f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@ test/
.DS_Store .DS_Store


package.box package.box
*.iso
11 changes: 6 additions & 5 deletions build.sh
Expand Up @@ -23,16 +23,17 @@ chmod -R u+w "${FOLDER_ISO_INITRD}"
rm -rf "${FOLDER_ISO_INITRD}" rm -rf "${FOLDER_ISO_INITRD}"
mkdir -p "${FOLDER_ISO_INITRD}" mkdir -p "${FOLDER_ISO_INITRD}"


ISO_URL="http://cdimage.ubuntu.com/daily/current/precise-alternate-amd64.iso" ISO_URL="http://releases.ubuntu.com/precise/ubuntu-12.04-alternate-amd64.iso"
ISO_FILENAME="${FOLDER_ISO}/`basename ${ISO_URL}`" ISO_FILENAME="${FOLDER_ISO}/`basename ${ISO_URL}`"

ISO_MD5="9fcc322536575dda5879c279f0b142d7"
INITRD_FILENAME="${FOLDER_ISO}/initrd.gz" INITRD_FILENAME="${FOLDER_ISO}/initrd.gz"


ISO_GUESTADDITIONS="/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso" ISO_GUESTADDITIONS="/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso"


# download the installation disk if you haven't already # download the installation disk if you haven't already or it is corrupted somehow
if [ ! -e "${ISO_FILENAME}" ]; then if [ ! -e "${ISO_FILENAME}" ] || [ ! `md5 "${ISO_FILENAME}"` -eq ${ISO_MD5}]
wget -O "${ISO_FILENAME}" "${ISO_URL}" then
curl -v --output "${ISO_FILENAME}" -L "${ISO_URL}"
fi fi


# customize it # customize it
Expand Down

0 comments on commit d74427f

Please sign in to comment.