[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Small patch for tools/boot/woody/boot-i386



Here is a small cleanup patch for the tools/boot/woody/boot-i386 in
CVS.  It avoids hardcoding the number of CDs:

Index: tools/boot/woody/boot-i386
===================================================================
RCS file: /var/lib/cvs/skolelinux/src/debian-cd/tools/boot/woody/boot-i386,v
retrieving revision 1.1.1.2
diff -u -3 -p -u -r1.1.1.2 boot-i386
--- tools/boot/woody/boot-i386  2 Oct 2001 12:19:21 -0000       1.1.1.2
+++ tools/boot/woody/boot-i386  16 Nov 2001 00:21:43 -0000
@@ -29,12 +29,7 @@ cd $CDDIR/..

 # Strip stupid NONUS sutff
 #
-if [ $N == "1_NONUS" ] || [ $N == "1" ] ; then NN=1 ; fi
-if [ $N == "2_NONUS" ] || [ $N == "2" ] ; then NN=2 ; fi
-if [ $N == "3_NONUS" ] || [ $N == "3" ] ; then NN=3 ; fi
-if [ $N == "4_NONUS" ] || [ $N == "4" ] ; then NN=4 ; fi
-if [ $N == "5_NONUS" ] || [ $N == "5" ] ; then NN=5 ; fi
-if [ $N == "6_NONUS" ] || [ $N == "6" ] ; then NN=6 ; fi
+N=`echo $N | sed 's/_NONUS//'`
 # NN is now 1...N so it can be used as an index

 # what kernel-type to put on what disk?



Reply to: