December 17, 2008

Latest Ubuntu Image with Rsync

This is a quick script to fetch latest image build for Ubuntu 9.04 (Jaunty Jackalope)
#!/bin/bash -v
rsync -vzhhP rsync://cdimage.ubuntu.com/cdimage/daily-live/current/jaunty-desktop-i386.iso ./jaunty-desktop-i386.iso
rsync -vzhhP rsync://cdimage.ubuntu.com/cdimage/daily-live/current/MD5SUMS ./MD5SUMS

md5sum -c ./MD5SUMS 2>&1 | grep i386

I also download sums and check them since I don't trust rsync 100%, although he never failed me before.