debian-cd-clone/etch/tools/boot/potato/boot-m68k

64 lines
1.4 KiB
Plaintext
Raw Normal View History

#!/bin/bash
#
# boot-m68k Nick Holgate <holgate@debian.org>
# Released under GPL 14 June 2000
# See the file COPYING for license details
# Released as part of the debian-cd package, not much use standalone
#
# Do install stuff for m68k, including making bootable CDs or BVME4000/6000
#
set -e
#set -x
N=$1
CDDIR=$2
cd $CDDIR/..
echo -n "--netatalk -J -hfs -probe -map $BASEDIR/data/hfs.map" \
> $N.mkisofs_opts
# Only disk 1 bootable
if [ $N != 1 -a $N != 1_NONUS ]; then
exit 0
fi
# Get real name of current disks directory
DISKSDIR=$CDDIR/dists/$CODENAME/main/disks-$ARCH
DISKSVER=$(readlink $DISKSDIR/current)
# Put CD boot image into place
mkdir -p boot1/boot
cp -f $DISKSDIR/current/bvme6000/images-2.88/rescue.bin boot1/boot
echo -n " -b boot/rescue.bin -c boot/boot.catalog boot1" \
>> $N.mkisofs_opts
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
cd $CDDIR/install
# Redo work of installtools.sh
ln -sf install.en.html doc/index.html
# Dmesg needs to be executable
chmod a+x dmesg
# Amiboot needs to be executable
chmod a+x amiga/amiboot-5.6
# Need a .info file for the install directory (AmigaOS)
cp -f amiga.info $CDDIR/install.info
##-----------------------------< end of file >------------------------------##