From 5d74a85ef450ae87cc5b8ec38e23c618ea071a3f Mon Sep 17 00:00:00 2001 From: Jim Westveer Date: Thu, 6 Jul 2000 00:34:45 +0000 Subject: [PATCH] update to /tools/boot/woody/i386 to check for existance of bootdisks --jwest --- tools/boot/woody/boot-i386 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tools/boot/woody/boot-i386 b/tools/boot/woody/boot-i386 index 1f1c86f5..3a5d5547 100755 --- a/tools/boot/woody/boot-i386 +++ b/tools/boot/woody/boot-i386 @@ -1,3 +1,4 @@ +B #!/bin/bash # # boot-i386 v 1.13 (c) Steve McIntyre @@ -12,15 +13,24 @@ # # $1 is the CD number # $2 is the temporary CD build dir -# CODENAME1 used temporarly to point to potato boot disks -- jwest - +# CODENAME1 used temporarly to point to potato boot disks +# if potato boot disks do not exist 05-JUL-2000 -- jwest set -e N=$1 CDDIR=$2 BOOTDIR= + + # set bootdisks to potato for the moment. -CODENAME1=potato +if [ -f $MIRROR/dists/$CODENAME/main/disks-$ARCH/current/images-2.88/compact/rescue.bin ]; then + echo "Using woody bootdisks" + CODENAME1=$CODENAME +else + echo "Using potato bootdisks" + CODENAME1=potato +fi + cd $CDDIR/..