manuals aren't currently on /usr
[unix-history] / usr / src / sys / vax / dist / maketape
CommitLineData
adf5bd82 1# @(#)maketape 4.3 %G%
c626e3e3 2#
df9c18aa 3machine=arpa
c626e3e3 4trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
df9c18aa 5${machine} rewind
c626e3e3
SL
6date
7cd /tp
df9c18aa 8tp cmf /tmp/tape.$$ boot copy upchk hpchk updrtest hpdrtest
c626e3e3 9cd /usr/mdec
df9c18aa 10echo "Build 1st level boot block file"
c626e3e3 11cat tsboot htboot tmboot mtboot noboot noboot noboot /tmp/tape.$$ | \
df9c18aa 12 ${machine} dd of=/dev/rmt12 bs=512 conv=sync
c626e3e3
SL
13cd /
14sync
df9c18aa
SL
15echo "Add dump of mini-root file system"
16dd if=/dev/rhk0a bs=8k count=130 | \
17 ${machine} dd of=/dev/rmt12 ibs=20b obs=20b
18echo "Add full dump of real file system"
19/etc/rdump 0uf ${machine}:/dev/rmt12 /
20echo "Add tar image of system sources"
21cd /sys; tar cf - . | ${machine} dd of=/dev/rmt12 ibs=20b obs=20b
22echo "Done, rewind"
23${machine} rewind