#!/bin/bash # # boot-mips # # $1 is the CD number # $2 is the temporary CD build dir # genisovh is used to make ISOs bootable on mips. . $BASEDIR/tools/boot/$CODENAME/common.sh set -e N=$1 CDROOT=$2 if [ "$DI_WWW_HOME" = "default" ];then DI_WWW_HOME="http://people.debian.org/~tbm/d-i/images/mips/daily/" fi if [ ! "$DI_DIST" ]; then DI_DIST="$DI_CODENAME" fi echo -J > $1.mkisofs_opts # Only disk 1* bootable if [ $N != 1 -a $N != 1_NONUS ]; then exit 0 fi if [ ! "$DI_WWW_HOME" ];then DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images" else DI_DIR="di_stuff" wget -P "$DI_DIR/r4k-ip22" "$DI_WWW_HOME/r4k-ip22/cdrom-boot.img" wget -P "$DI_DIR/r5k-ip22" "$DI_WWW_HOME/r5k-ip22/cdrom-boot.img" fi install -m 644 -D "$DI_DIR"/r4k-ip22/cdrom-boot.img "$CDROOT"/install/r4k-ip22-boot.img install -m 644 -D "$DI_DIR"/r5k-ip22/cdrom-boot.img "$CDROOT"/install/r5k-ip22-boot.img install_languages $CDROOT exit 0