|
|
1.1 ! root 1: #!/bin/sh - ! 2: # ! 3: # Copyright (c) 1990 The Regents of the University of California. ! 4: # All rights reserved. ! 5: # ! 6: # Redistribution and use in source and binary forms are permitted provided ! 7: # that: (1) source distributions retain this entire copyright notice and ! 8: # comment, and (2) distributions including binaries display the following ! 9: # acknowledgement: ``This product includes software developed by the ! 10: # University of California, Berkeley and its contributors'' in the ! 11: # documentation or other materials provided with the distribution and in ! 12: # all advertising materials mentioning features or use of this software. ! 13: # Neither the name of the University nor the names of its contributors may ! 14: # be used to endorse or promote products derived from this software without ! 15: # specific prior written permission. ! 16: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED ! 17: # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF ! 18: # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 19: # ! 20: # @(#)maketape 4.33 (Berkeley) 7/5/90 ! 21: # ! 22: ! 23: # maketape [ 6250 | 1600 [ tapename [ remotetapemachine ] ] ] ! 24: miniroot=ra1b ! 25: nbsd=ra1a ! 26: nbsdusr=/mnt/usr/DISTUSR ! 27: tape=/dev/rmt20 ! 28: type=6250 ! 29: block=40 ! 30: tflag=cbf ! 31: bprog="/usr/local/20b 20480" ! 32: ! 33: if [ $# -gt 0 ]; then ! 34: type=$1; ! 35: fi ! 36: ! 37: if [ $# -gt 1 ]; then ! 38: tape=$2; ! 39: fi ! 40: ! 41: tartape=$tape ! 42: if [ $# -gt 2 ]; then ! 43: remote=$3; ! 44: tartape='-'; ! 45: fi ! 46: ! 47: rsh $remote mt -t ${tape} rew ! 48: date ! 49: #umount /dev/$nbsdusr ! 50: umount /dev/$nbsd ! 51: mount -r /dev/$nbsd /nbsd ! 52: #mount -r /dev/$nbsdusr /nbsd/usr ! 53: cd /nbsd ! 54: sync ! 55: ! 56: if [ $type = '1600a' ] ! 57: then ! 58: type=1600 ! 59: fi ! 60: ! 61: cd /nbsd/sys/vaxdist/tp ! 62: tp cmf /tmp/tape.$$ boot copy format ! 63: cd /nbsd/sys/mdec ! 64: echo "Build 1st level boot block file" ! 65: cat tsboot htboot tmboot mtboot utboot noboot noboot /tmp/tape.$$ | \ ! 66: rsh $remote dd of=${tape} obs=512 conv=sync ! 67: ! 68: echo "Add image of mini-root file system" ! 69: eval dd if=/dev/r${miniroot} count=205 bs=20b conv=sync ${remote+"| rsh"} \ ! 70: ${remote-"of=$tape"} ${remote+'/usr/local/20b ">" $tape'} ! 71: ! 72: echo "Add full dump of real file system" ! 73: /sbin/${remote+r}dump 0f $remote${remote+:}${tape} /dev/r${nbsd} ! 74: ! 75: echo "Add tar image of /usr" ! 76: cd ${nbsdusr} ! 77: tar ${tflag} ${block} ${tartape} bin contrib games include lib libdata \ ! 78: libexec local mdec obj old sbin share | rsh $remote ${bprog} ">" $tape ! 79: ! 80: if [ ${type} != '6250' ] ! 81: then ! 82: echo "Done, rewinding first tape" ! 83: rsh $remote mt -t ${tape} rew & ! 84: echo "Mount second tape and hit return when ready" ! 85: echo "(or type name of next tape drive)" ! 86: read x ! 87: if [ "$x" != "" ] ! 88: then tape=$x ! 89: fi ! 90: fi ! 91: ! 92: : tape2: ! 93: echo "Add user source code" ! 94: FILES="Makefile bin etc games include kerberosIV lib libexec old \ ! 95: pgrm sbin share usr.bin usr.sbin" ! 96: cd /nbsd/usr/src ! 97: tar ${tflag} ${block} ${tartape} ${FILES} | rsh $remote ${bprog} ">" $tape ! 98: ! 99: if [ ${type} != '6250' ] ! 100: then ! 101: echo "Done, rewinding second tape" ! 102: $remote mt -t ${tape} rew & ! 103: echo "Mount third tape and hit return when ready" ! 104: echo "(or type name of next tape drive)" ! 105: read x ! 106: if [ "$x" != "" ] ! 107: then tape=$x ! 108: fi ! 109: fi ! 110: ! 111: : tape3: ! 112: echo "Add tar image of system sources" ! 113: cd /nbsd/usr/src/sys ! 114: tar ${tflag} ${block} ${tartape} . | rsh $remote ${bprog} ">" $tape ! 115: ! 116: echo "Add user contributed software" ! 117: # standard (always uncompressed) directories: ! 118: FILES="Makefile Makefile.inc ansi bib emacs emacs-18.55.tar.Z jove kermit \ ! 119: mh.tar.Z patch rcs vmsprep" ! 120: cd /nbsd/usr/src/contrib ! 121: tar ${tflag} ${block} ${tartape} ${FILES} | rsh $remote ${bprog} ">" $tape ! 122: ! 123: ! 124: echo "Done, rewinding tape" ! 125: rsh $remote mt -t ${tape} rew &
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.