source: trunk/netboot/update @ 588

Last change on this file since 588 was 588, checked in by dkg, 6 years ago

lair netboot maintenance: cleanup, including fetching pxegrub.

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/sh -e
2
3# RIP updates:
4(cd RIP && ./update)
5
6# debian installers:
7wget --mirror -np 'http://ftp.debian.org/debian/dists/'{stable,testing,unstable}'/main/installer-i386/current/images/netboot/'{,gtk/}'debian-installer/i386/'{linux,initrd.gz,pxelinux.cfg/default}
8
9# update joey hess' nightly builds, which i'm using in place of unstable:
10wget --mirror -np 'http://people.debian.org/~joeyh/d-i/images/daily/netboot/'{,gtk/}'debian-installer/i386/'{linux,initrd.gz,pxelinux.cfg/default}
11
12# ubuntu's installer:
13wget --mirror -np 'http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/netboot/ubuntu-installer/i386/'{linux,initrd.gz,pxelinux.cfg/default}
14
15
16# update the pxegrub from adam's files:
17# (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=217048)
18PXEURL='http://os.inf.tu-dresden.de/~adam/grub/0.97'
19PXESORT='?C=M;O=A'
20PXEREGEX='pxegrub-[[:digit:].]\+-os.[[:digit:].]\+\.gz'
21PXEGRUB=$(wget -q -O- "$PXEURL/$PXESORT" | grep "$PXEREGEX" | sed 's/^.*href="\('"$PXEREGEX"'\)".*$/\1/i' | tail -n1)
22TARG="grub-legacy/$(basename "$PXEGRUB" .gz)"
23
24if [ -s "$TARG" ] ; then
25    echo we already have "$TARG". not fetching.
26else
27    wget -O- "$PXEURL/$PXEGRUB" | gunzip - > "$TARG"
28    rm -f pxeboot
29    ln -s "$TARG" pxeboot
30fi
31
32# anything else?
Note: See TracBrowser for help on using the repository browser.