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

65 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
#
. $BASEDIR/tools/boot/$CODENAME/common.sh
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 ]; then
exit 0
fi
install_languages $CDDIR
# Get real name of current disks directory
DISKSDIR=$CDDIR/dists/$CODENAME/main/disks-$ARCH
DISKSVER=$(if ! readlink $DISKSDIR/current; then echo current; fi)
# Put CD boot image into place
mkdir -p boot1/boot
cp $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
# Amiboot needs to be executable
chmod a+x amiga/amiboot-5.6
# Need a .info file for the install directory (AmigaOS)
cp amiga.info $CDDIR/install.info
##-----------------------------< end of file >------------------------------##