2005-05-05 16:15:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Do install stuff for m68k, including making bootable CDs for bvme6000
|
|
|
|
# Works with debian-installer
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
|
|
|
|
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
|
|
|
INSTALLDIR=$CDDIR/install
|
|
|
|
|
|
|
|
if [ "$DI_WWW_HOME" = "default" ];then
|
|
|
|
DI_WWW_HOME="http://people.debian.org/~smarenka/d-i/images-m68k/daily/"
|
2005-05-17 16:08:15 +00:00
|
|
|
if [ -n "$DI_DIR" ];then
|
|
|
|
DI_DIR="$DI_DIR/~${DI_WWW_HOME#*~}"
|
|
|
|
DI_WWW_HOME=""
|
|
|
|
fi
|
2005-05-05 16:15:44 +00:00
|
|
|
elif [ "$DI_WWW_HOME" = "test" ];then
|
|
|
|
DI_WWW_HOME="http://people.debian.org/~smarenka/d-i/test/cd/"
|
|
|
|
fi
|
|
|
|
if [ ! "$DI_DIST" ]; then
|
|
|
|
DI_DIST="$DI_CODENAME"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
|
|
|
echo -n "--netatalk -J -hfs -probe -map $BASEDIR/data/hfs.map" \
|
|
|
|
> $N.mkisofs_opts
|
|
|
|
|
|
|
|
# Only disk 1 bootable
|
|
|
|
if [ $N != 1 ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "DI_WWW_HOME: $DI_WWW_HOME"
|
|
|
|
echo "DI_DIR: $DI_DIR"
|
|
|
|
|
|
|
|
install_languages $CDDIR
|
|
|
|
|
|
|
|
# remove i386 stuff
|
|
|
|
rm -rf $CDDIR/tools
|
|
|
|
|
|
|
|
|
|
|
|
cd $INSTALLDIR
|
|
|
|
|
|
|
|
# This setup is designed to automatically use whatever subarchs are
|
|
|
|
# available to build the cd.
|
|
|
|
|
|
|
|
if [ ! "$DI_WWW_HOME" ];then
|
|
|
|
if [ ! $DI_DIR ]; then
|
2005-05-17 16:08:15 +00:00
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
|
2005-06-29 12:41:28 +00:00
|
|
|
echo "DI_DIR: $DI_DIR"
|
2005-05-05 16:15:44 +00:00
|
|
|
fi
|
|
|
|
cp -a $DI_DIR/* .
|
|
|
|
else
|
|
|
|
wget -q -np -nH --cut-dirs=4 -r -l 3 -R '.gif,.log,stats.txt,index*' "$DI_WWW_HOME"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# amiga specific stuff
|
2005-06-29 12:41:28 +00:00
|
|
|
if [ -d tools/amiga ]; then
|
2005-05-05 16:15:44 +00:00
|
|
|
# Amiboot and dmesg need to be executable
|
2005-06-15 12:29:25 +00:00
|
|
|
chmod a+x tools/amiga/amiboot
|
|
|
|
# chmod a+x tools/amiga/dmesg
|
2005-05-05 16:15:44 +00:00
|
|
|
|
|
|
|
# Setup amiga icons
|
2005-06-15 12:29:25 +00:00
|
|
|
cp tools/amiga/amiga.info $CDDIR/install.info
|
2005-05-05 16:15:44 +00:00
|
|
|
if [ -d $INSTALLDIR/tools ]; then
|
2005-06-15 12:29:25 +00:00
|
|
|
cp tools/amiga/amiga.info $INSTALLDIR/tools.info
|
2005-05-05 16:15:44 +00:00
|
|
|
fi
|
2005-06-15 12:29:25 +00:00
|
|
|
mv tools/amiga/amiga.info .
|
2005-05-05 16:15:44 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cd $INSTALLDIR
|
|
|
|
|
|
|
|
# bvme6000 specific stuff
|
2005-06-29 12:41:28 +00:00
|
|
|
if [ -f tools/cdrom/bvme6000-boot.img.gz ]; then
|
|
|
|
mkdir -p $CDDIR/boot1/boot
|
|
|
|
cp tools/cdrom/bvme6000-boot.img.gz $CDDIR/boot1/boot/boot.bin
|
|
|
|
echo -n " -b boot/boot.bin -c boot/boot.catalog boot1" \
|
|
|
|
>> $N.mkisofs_opts
|
2005-05-05 16:15:44 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
##-----------------------------< end of file >------------------------------##
|