|
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: |
|---|
| 7 | wget --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: |
|---|
| 10 | wget --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: |
|---|
| 13 | wget --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) |
|---|
| 18 | PXEURL='http://os.inf.tu-dresden.de/~adam/grub/0.97' |
|---|
| 19 | PXESORT='?C=M;O=A' |
|---|
| 20 | PXEREGEX='pxegrub-[[:digit:].]\+-os.[[:digit:].]\+\.gz' |
|---|
| 21 | PXEGRUB=$(wget -q -O- "$PXEURL/$PXESORT" | grep "$PXEREGEX" | sed 's/^.*href="\('"$PXEREGEX"'\)".*$/\1/i' | tail -n1) |
|---|
| 22 | TARG="grub-legacy/$(basename "$PXEGRUB" .gz)" |
|---|
| 23 | |
|---|
| 24 | if [ -s "$TARG" ] ; then |
|---|
| 25 | echo we already have "$TARG". not fetching. |
|---|
| 26 | else |
|---|
| 27 | wget -O- "$PXEURL/$PXEGRUB" | gunzip - > "$TARG" |
|---|
| 28 | rm -f pxeboot |
|---|
| 29 | ln -s "$TARG" pxeboot |
|---|
| 30 | fi |
|---|
| 31 | |
|---|
| 32 | # anything else? |
|---|
Note: See
TracBrowser
for help on using the repository browser.