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

64 lines
1.4 KiB
Plaintext
Raw Normal View History

1999-11-11 16:10:37 -01:00
#!/bin/bash
#
# 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
# Released as part of the debian-cd package, not much use standalone
1999-11-11 16:10:37 -01:00
#
# Do install stuff for m68k, including making bootable CDs or BVME4000/6000
1999-11-11 16:10:37 -01:00
#
set -e
#set -x
1999-11-11 16:10:37 -01:00
N=$1
CDDIR=$2
cd $CDDIR/..
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
if [ $N != 1 -a $N != 1_NONUS ]; then
1999-11-11 16:10:37 -01:00
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
1999-11-11 16:10:37 -01:00
echo -n " -b boot/rescue.bin -c boot/boot.catalog boot1" \
>> $N.mkisofs_opts
1999-11-11 16:10:37 -01: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
cd $CDDIR/install
1999-11-11 16:10:37 -01:00
# Redo work of installtools.sh
ln -sf install.en.html doc/index.html
# Dmesg needs to be executable
chmod a+x dmesg
1999-11-11 16:10:37 -01:00
# 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 >------------------------------##