|
|
1.1 root 1:
2: export SHIP=/ship
3: export USE_BINARIES=/interim
4: KERNEL=$SHIP/distrib1/coherent
5:
6: case $1 in
7:
8: fva0) BLOCKS=2880;MINOR=15;DEV=fva0;BOOT=boot.fva;;
9: fha0) BLOCKS=2400;MINOR=14;DEV=fha0;BOOT=boot.fha;;
10: fva1) BLOCKS=2880;MINOR=15;DEV=fva1;BOOT=boot.fva;;
11: fha1) BLOCKS=2400;MINOR=14;DEV=fha1;BOOT=boot.fha;;
12: *) echo "\007Usage: cobble [device name (fva0, fha0, fva1, fha1)] [version]";
13: exit 1;;
14: esac
15:
16:
17: echo "Place a blank diskette in your floppy drive and press <return>\c"
18: read NIL
19:
20:
21: # format and mkfs floppy
22:
23: fdformat -a /dev/$DEV
24: mkfs /dev/$DEV $BLOCKS
25:
26: # write boot block to floppy
27:
28: cp $USE_BINARIES/conf/$BOOT /dev/$DEV
29:
30: # mount floppy and copy kernel to floppy
31:
32: /etc/mount /dev/$DEV /f0
33: cpdir -ad $SHIP/distrib1 /f0
34:
35: : Patch the /coherent image and link it to /begin.
36:
37: cp $KERNEL /f0/coherent
38:
39: # patch floppy for diskette parameters, place appropriate permissions on kernel
40:
41: /conf/patch /f0/coherent rootdev_=makedev\(4,$MINOR \)
42: /conf/patch /f0/coherent pipedev_=makedev\(4,$MINOR \)
43: /conf/patch /f0/coherent ronflag_=0
44: chown sys /f0/coherent
45: chgrp sys /f0/coherent
46: chmod 400 /f0/coherent
47:
48: ln -f /f0/coherent /f0/begin
49: ln -f /f0/etc/brc.build /f0/etc/brc
50:
51: : Cleanup.
52: /etc/umount /dev/$DEV
53: sync
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.