xref: /original-bsd/sys/tahoe/dist/buildboot (revision a7108741)
1#!/bin/sh -
2#
3# Copyright (c) 1988, 1990 The Regents of the University of California.
4# All rights reserved.
5#
6# %sccs.include.redist.sh%
7#
8#	@(#)buildboot	1.7 (Berkeley) 05/21/91
9#
10
11if [ X$boot = X ]
12then
13	boot=dk4a		# partition to build bootstrap FS on
14fi
15if [ X$boottype = X ]
16then
17	boottype=xfd		# type of ${boot} partition
18fi
19bootmnt=/tmp/mini		# mount point
20DISTROOT=/nbsd			# place to get programs from
21
22date
23umount /dev/${boot}
24newfs -s 1500 ${boot} ${boottype}
25fsck /dev/r${boot}
26
27mkdir ${bootmnt};
28mount /dev/${boot} ${bootmnt}
29
30cp -p $DISTROOT/stand/copy ${bootmnt}
31cp -p $DISTROOT/boot ${bootmnt}
32
33if [ X$HCX9 != X ]
34then
35	# HCX-9 programs
36	(cd $DISTROOT && cp -p fpevent fppwcs fppwcs_dual hdcwcs ${bootmnt})
37	(cd $DISTROOT && cp -p start_fpp load_diags wcs wcs_dual ${bootmnt})
38else
39	# 6/32, HCX-7, etc. programs
40	cp -p $DISTROOT/stand/vdformat ${bootmnt}
41	(cd $DISTROOT && cp -p wcs fppwcs poc poc1 poc2 fppoc ${bootmnt})
42fi
43
44sync
45umount /dev/${boot}
46fsck /dev/r${boot}
47date
48