#!/bin/sh
#
# Copyright (c) 1986 Regents of the University of California.
# All rights reserved.  The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
#	@(#)buildboot	1.2 (Berkeley) 7/9/88
#
boot=dk2a
boottype=xfd
bootmnt=/tmp/mini
DISTROOT=/nbsd

date
umount /dev/${boot}
newfs -s 1200 ${boot} ${boottype}
fsck /dev/r${boot}
mount /dev/${boot} ${bootmnt}
cp $DISTROOT/stand/copy ${bootmnt}
#cp $DISTROOT/stand/vdformat ${bootmnt}
cp $DISTROOT/boot ${bootmnt}
cp $DISTROOT/wcs ${bootmnt}
cp $DISTROOT/fppwcs ${bootmnt}
#cp $DISTROOT/poc ${bootmnt}
#cp $DISTROOT/poc1 ${bootmnt}
#cp $DISTROOT/poc2 ${bootmnt}
#cp $DISTROOT/fppoc ${bootmnt}
sync
umount /dev/${boot}
fsck /dev/${boot}
date
