3
# boot-mipsel - (C) 2002 by Karsten Merker <merker@debian.org>
5
# You may copy, modify and distribute this under the terms of the GNU
6
# General Public License as published by the Free Software Foundation;
7
# either version 2 of the License, or (at your option) any later version.
10
# $2 is the temporary CD build dir
12
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
18
if [ "$DI_WWW_HOME" = "default" ];then
19
DI_WWW_HOME="http://people.debian.org/~ths/d-i/mipsel/images/daily/decstation/cdrom/"
20
if [ -n "$DI_DIR" ];then
21
DI_DIR="$DI_DIR/~${DI_WWW_HOME#*~}"
25
if [ ! "$DI_DIST" ]; then
26
DI_DIST="$DI_CODENAME"
29
# Strip NONUS part of disk number
30
# NN will be 1...N so it can be used as an index
32
NN=`echo $N | sed -e 's/_NONUS//'`
36
add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-J"
38
# Only disks 1 bootable
43
DELODEB="$($BASEDIR/tools/apt-selection cache show delo | \
44
sed -n 's/^Filename: \(.*_mipsel.deb\)$/\1/p')"
45
ar p "${MIRROR}/${DELODEB}" data.tar.gz | tar xz ./boot/delo.2nd
47
mv boot/delo.2nd $CDROOT/boot/delo.2nd
49
install -m 644 -D $BASEDIR/data/lenny/delo.conf "$CDROOT"/etc/delo.conf
51
if [ ! "$DI_WWW_HOME" ];then
52
if [ ! "$DI_DIR" ];then
53
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/decstation/cdrom/"
54
if [ ! -e $DI_DIR ] ; then
55
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/cdrom/"
60
wget "$DI_WWW_HOME" -O di.dir
61
r3k=$(sed -n 's/.*a href="\(vmlinux-.*-r3k-kn02\)".*/\1/ip' di.dir)
62
r4k=$(sed -n 's/.*a href="\(vmlinux-.*-r4k-kn04\)".*/\1/ip' di.dir)
63
wget "$DI_WWW_HOME/$r3k" -O vmlinux-x-r3k-kn02
64
wget "$DI_WWW_HOME/$r4k" -O vmlinux-x-r4k-kn04
65
wget "$DI_WWW_HOME/initrd.gz"
67
cp "$DI_DIR"/initrd.gz "$CDROOT/boot/initrd.gz"
68
cp "$DI_DIR"/vmlinux-*-r3k-kn02 "$CDROOT/boot/vmlinux-r3k-kn02"
69
cp "$DI_DIR"/vmlinux-*-r4k-kn04 "$CDROOT/boot/vmlinux-r4k-kn04"
71
install_languages $CDROOT
73
add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-mipsel-boot boot/delo.2nd"