trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
tp cmf /tmp/tape.$$ boot copy upchk hpchk updrtest hpdrtest
echo "Build 1st level boot block file"
cat tsboot htboot tmboot mtboot noboot noboot noboot /tmp/tape.$$ | \
${machine} dd of=/dev/rmt12 bs=512 conv=sync
echo "Add dump of mini-root file system"
dd if=/dev/rhk0a bs=8k count=130 | \
${machine} dd of=/dev/rmt12 ibs=20b obs=20b
echo "Add full dump of real file system"
/etc/rdump 0uf ${machine}:/dev/rmt12 /
echo "Add tar image of system sources"
cd /sys; tar cf - . | ${machine} dd of=/dev/rmt12 ibs=20b obs=20b