File: boot-m68k

package info (click to toggle)
debian-cd 2.2.13
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,480 kB
  • ctags: 120
  • sloc: sh: 1,666; perl: 1,078; makefile: 832
file content (63 lines) | stat: -rwxr-xr-x 1,418 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/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 >------------------------------##