File: boot-alpha

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 (78 lines) | stat: -rwxr-xr-x 2,084 bytes parent folder | download | duplicates (3)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
#
# boot-alpha v 1.13 (c) Steve McIntyre <stevem@chiark.greenend.org.uk>
# and Loic Prylli <Loic.Prylli@ens-lyon.fr>
# Released under GPL 31 Mar 1999
# See the file COPYING for license details
# Released as part of the slink_cd package, not much use standalone
#
# Do install stuff for alpha, including making bootable CDs
#

set -e

N=$1
CDDIR=$2

cd $CDDIR/..

# Only disc 1 bootable
if [ $N != 1 -a $N != 1_NONUS ]; then 
	echo "-J" > $N.mkisofs_opts
	exit 0; 
fi

echo -n "-J boot1" > $N.mkisofs_opts

# Hack for bootable disks
test -d boot1 && {
  echo "skipping the rest, because boot1 exists already"
  exit 0
}
mkdir -p boot1/boot

# Use the generic linux image
cp -f $CDDIR/dists/stable/main/disks-$ARCH/current/linux \
	boot1/boot/linux

# Copy over the subarch boot-loaders
mkdir boot1/milo
cp -f $CDDIR/dists/stable/main/disks-$ARCH/current/MILO/* \
	boot1/milo/

# Now the APB stuff
mkdir boot1/apb
cp -f $CDDIR/dists/stable/main/disks-$ARCH/current/APB/* \
	boot1/apb/

# And aboot
cp -f $CDDIR/dists/stable/main/disks-$ARCH/current/bootlx \
	boot1/boot/bootlx
cp -f $CDDIR/dists/stable/main/disks-$ARCH/current/images-1.44/root.bin \
	boot1/boot/root.bin
mkdir -p boot1/etc
cat <<EOF > boot1/etc/aboot.conf
0:boot/linux root=/dev/ram initrd=boot/root.bin
1:boot/linux root=/dev/ram initrd=boot/root.bin console=ttyS0
2:boot/linux root=/dev/ram initrd=boot/root.bin console=ttyS1
EOF

mkdir $CDDIR/tools/rawrite1
(cd $CDDIR/tools/rawrite1; \
   unzip -Lq $MIRROR/tools/rawrite1.zip )

mkdir $CDDIR/tools/rawrite2
(cd $CDDIR/tools/rawrite2; \
   unzip -Lq $MIRROR/tools/rawrite2.zip; \
   rm rawrite2.c )

(echo "Tools for DOS :" ; \
   echo "rawrite1/       rawrite 1.3 : create disks from disk images (*.bin)"; \
   echo "rawrite2/       rawrite 2.0 : create disks from disk images (*.bin)"; \
   echo "         rawrite 2.0 is much faster, but it locks up on some machines";\
   ) |todos > $CDDIR/tools/README.tools

cp -f $CDDIR/tools/rawrite1/rawrite3.com $CDDIR/install/rw1_3.com
cp -f $CDDIR/tools/rawrite2/rawrite2.exe $CDDIR/install/rw2_0.exe

exit 0