# Copyright (c) 1980 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)maketape 4.16 (Berkeley) %G%
trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
umount
/dev
/hp2g
/dev
/hp2h
mount
-r /dev
/hp2g
/nbsd
/usr
mount
-r /dev
/hp2h
/nbsd
/a
tp cmf
/tmp
/tape.$$ boot copy format
echo "Build 1st level boot block file"
cat tsboot htboot tmboot mtboot utboot noboot noboot
/tmp
/tape.$$ | \
dd of
=/dev
/rmt12 bs
=512 conv
=sync
echo "Add dump of mini-root file system"
dd if=/dev
/r
${miniroot} of
=/dev
/rmt12 bs
=20b count
=205 conv
=sync
echo "Add full dump of real file system"
/etc
/dump
0uf
/dev
/rmt12
/nbsd
echo "Add tar image of system sources"
cd /nbsd
/a
/sys
; tar cf
/dev
/rmt12 .
echo "Add tar image of /usr"
cd /nbsd
/usr
; tar cf
/dev
/rmt12 adm bin dict doc games \
guest hosts include lib
local man mdec msgs new \
preserve pub spool tmp ucb
cd /usr
/lib
/vfont
; tar cf
/dev
/rmt12 .
echo "Done, rewinding first tape"
echo "Mount second tape and hit return when ready"; read x
echo "Add user source code"
cd /nbsd
/usr
/src
; tar cf
/dev
/rmt12 .
echo "Add user contributed software"
cd /nbsd
/a
/new
; tar cf
/dev
/rmt12 .
cd /nbsd
/usr
/ingres
; tar cf
/dev
/rmt12 .
echo "Done, rewinding second tape"