1999-11-11 16:10:37 -01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2000-06-16 11:14:39 +00:00
|
|
|
# boot-m68k Nick Holgate <holgate@debian.org>
|
|
|
|
# Released under GPL 14 June 2000
|
1999-11-11 16:10:37 -01:00
|
|
|
# See the file COPYING for license details
|
2000-06-16 11:14:39 +00:00
|
|
|
# Released as part of the debian-cd package, not much use standalone
|
1999-11-11 16:10:37 -01:00
|
|
|
#
|
2000-06-16 11:14:39 +00:00
|
|
|
# Do install stuff for m68k, including making bootable CDs or BVME4000/6000
|
1999-11-11 16:10:37 -01:00
|
|
|
#
|
|
|
|
|
2000-02-19 16:52:52 -01:00
|
|
|
set -e
|
2000-05-26 11:32:18 +00:00
|
|
|
#set -x
|
2000-02-19 16:52:52 -01:00
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
2000-05-26 11:32:18 +00:00
|
|
|
echo -n "--netatalk -J -hfs -probe -map $BASEDIR/data/hfs.map" \
|
|
|
|
> $N.mkisofs_opts
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
# Only disk 1 bootable
|
2000-06-16 23:42:50 +00:00
|
|
|
if [ $N != 1 -a $N != 1_NONUS ]; then
|
1999-11-11 16:10:37 -01:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2000-06-16 11:14:39 +00:00
|
|
|
# Get real name of current disks directory
|
|
|
|
DISKSDIR=$CDDIR/dists/$CODENAME/main/disks-$ARCH
|
|
|
|
DISKSVER=$(readlink $DISKSDIR/current)
|
|
|
|
|
2000-05-26 11:32:18 +00:00
|
|
|
# Put CD boot image into place
|
2000-06-16 23:42:50 +00:00
|
|
|
if [ ! -d boot1/boot ] ; then
|
|
|
|
mkdir -p boot1/boot
|
|
|
|
fi
|
|
|
|
cp -f $DISKSDIR/current/bvme6000/images-2.88/rescue.bin boot1/boot
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2000-05-26 11:32:18 +00:00
|
|
|
echo -n " -b boot/rescue.bin -c boot/boot.catalog boot1" \
|
|
|
|
>> $N.mkisofs_opts
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2000-06-16 11:14:39 +00:00
|
|
|
cd $CDDIR
|
|
|
|
|
|
|
|
# Clean out stuff created by installtools.sh
|
|
|
|
rm -rf install
|
|
|
|
|
|
|
|
# Put real disks directory in its place
|
|
|
|
mv $DISKSDIR/$DISKSVER install
|
|
|
|
|
|
|
|
# Make disks directory a symlink
|
|
|
|
ln -s ../../../../install $DISKSDIR/$DISKSVER
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2000-05-26 11:32:18 +00:00
|
|
|
cd $CDDIR/install
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2000-06-16 23:42:50 +00:00
|
|
|
# Tools
|
|
|
|
cp -f $DISKSROOT/rawrite2.exe $CDDIR/install
|
|
|
|
cp -f $DISKSROOT/rawwrite.ttp $CDDIR/install
|
2000-06-16 11:14:39 +00:00
|
|
|
# Redo work of installtools.sh
|
|
|
|
ln -sf install.en.html doc/index.html
|
|
|
|
|
|
|
|
# Extra tools not yet in boot floppies
|
2000-06-14 12:45:11 +00:00
|
|
|
wget -q sunsite.auc.dk:/pub/os/linux/680x0/tools/dmesg.readme -O dmesg.readme
|
|
|
|
wget -q sunsite.auc.dk:/pub/os/linux/680x0/tools/dmesg -O dmesg
|
|
|
|
chmod a+x dmesg
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2000-06-16 11:14:39 +00:00
|
|
|
# Amiboot needs to be executable
|
|
|
|
chmod a+x amiga/amiboot-5.6
|
|
|
|
|
|
|
|
# Need a .info file for the install directory (AmigaOS)
|
2000-06-16 23:42:50 +00:00
|
|
|
cp -f amiga.info $CDDIR/install.info
|
|
|
|
|
|
|
|
for TYPE in amiga atari bvme6000 mac mvme16x
|
|
|
|
do
|
|
|
|
#vecho Installing $TYPE files
|
|
|
|
if [ ! -d $TYPE/images-1.44 ] ; then
|
|
|
|
mkdir -p $TYPE/images-1.44
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp -f $DISKSROOT/$TYPE/images-1.44/* $TYPE/images-1.44
|
|
|
|
done
|
|
|
|
|
|
|
|
# Atari extras
|
|
|
|
D=atari
|
|
|
|
S=$DISKSROOT/$D
|
|
|
|
cp -f $S/bootargs $D
|
|
|
|
cp -f $S/bootstra.prg $D
|
|
|
|
cp -f $S/install.doc $D
|
|
|
|
cp -f $S/linux $D
|
|
|
|
cp -f $S/root.bin $D
|
|
|
|
|
|
|
|
# Amiga extras
|
|
|
|
D=amiga
|
|
|
|
S=$DISKSROOT/$D
|
|
|
|
cp -f $S/ReadMe_First* $D
|
|
|
|
cp -f $S/StartInstall* $D
|
|
|
|
cp -f $S/*.txt $D
|
|
|
|
cp -f $S/*.txt.info $D
|
|
|
|
cp -f $S/install.* $D
|
|
|
|
cp -f $S/linux $D
|
|
|
|
cp -f $S/root.bin $D
|
|
|
|
cp -f $S/amiboot-5.6 $D
|
|
|
|
# Needs to be executable
|
|
|
|
chmod a+x $D/amiboot-5.6
|
|
|
|
cp -f $DISKSROOT/amiga.info $CDDIR/install
|
|
|
|
cp -f $DISKSROOT/amiga.info $CDDIR/install.info
|
|
|
|
|
|
|
|
# BVME6000 extras
|
|
|
|
D=bvme6000
|
|
|
|
S=$DISKSROOT/$D
|
|
|
|
cp -f $S/linuxbvme6000 $D
|
|
|
|
cp -f $S/rootbvme6000.bin $D
|
|
|
|
cp -f $S/tftplilo.* $D
|
|
|
|
cp -f $S/install.txt $D
|
|
|
|
cp -f $S/bvmbug* $D
|
|
|
|
|
|
|
|
# MVME16x extras
|
|
|
|
D=mvme16x
|
|
|
|
S=$DISKSROOT/$D
|
|
|
|
cp -f $S/linuxmvme16x $D
|
|
|
|
cp -f $S/rootmvme16x.bin $D
|
|
|
|
cp -f $S/tftplilo.* $D
|
|
|
|
cp -f $S/install.txt $D
|
|
|
|
|
|
|
|
# Mac extras
|
|
|
|
D=mac
|
|
|
|
S=$DISKSROOT/$D
|
|
|
|
cp -f $S/linux $D
|
|
|
|
cp -f $S/root.bin $D
|
|
|
|
cp -f $S/*.img $D
|
|
|
|
cp -f $S/install/* $D
|
|
|
|
|
2000-05-26 11:32:18 +00:00
|
|
|
##-----------------------------< end of file >------------------------------##
|