--- bin/install-iso.sh 2009/07/26 14:46:44 5 +++ bin/install-iso.sh 2009/07/28 14:04:33 20 @@ -6,11 +6,24 @@ test -d mnt || mkdir mnt sudo umount mnt -to=../tftp/tinycore/ -url=http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/release/ -latest=`wget -q -O - $url | cut -d\" -f6 | grep '\.iso$'` -wget -nc $url/$latest -sudo mount $latest mnt -o loop -ls -alR mnt/ -cp -v mnt/boot/* $to +function fetch_iso() { + + latest=`wget -q -O - $1 | grep '\.iso' | sed 's/^.*"\([^"]*\.iso\)".*$/\1/' | head -1` + + wget -nc $1/$latest + sudo mount $latest mnt -o loop + ls -alR mnt/ + test -d $3 || mkdir $3 + cp -v $2 $3 + sudo umount mnt + +} + +fetch_iso http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/release/ mnt/boot/* ../tftp/tinycore/ +fetch_iso http://cmrg.mayfirst.org/debirf/ mnt/*2.6* ../tftp/debirf + +wget -m -nH -nd http://people.debian.org/~joeyh/d-i/images/daily/netboot/netboot.tar.gz +dir=../tftp/debian-netboot +test -d $dir || mkdir $dir +tar xvfz netboot.tar.gz -C $dir