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