Annotation of 43BSDTahoe/sys/tahoedist/makeboot, revision 1.1.1.1

1.1       root        1: #!/bin/sh
                      2: #
                      3: # Copyright (c) 1983 Regents of the University of California.
                      4: # All rights reserved.  The Berkeley software License Agreement
                      5: # specifies the terms and conditions for redistribution.
                      6: #
                      7: #      %W% (Berkeley) %G%
                      8: #
                      9: #      maketape [ 6250 | 1600 [ tapename [ remotetapemachine ] ] ]
                     10: miniroot=dk4a
                     11: bootroot=dk5a
                     12: tape=/dev/rmt12
                     13: type=1600
                     14: if [ $# -gt 0 ]; then type=$1; fi
                     15: if [ $# -gt 1 ]; then tape=$2; fi
                     16: tartape=$tape
                     17: if [ $# -gt 2 ]; then remote=$3; tartape='-'; fi
                     18: #
                     19: trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
                     20: $remote mt -t ${tape} rew
                     21: date
                     22: umount /dev/dk1a
                     23: umount /dev/dk4c
                     24: mount -r /dev/dk1a /nbsd
                     25: mount -r /dev/dk4c /nbsd/usr
                     26: cd /nbsd
                     27: sync
                     28: echo "Add image of bootstrap file system"
                     29: eval dd if=/dev/r${bootroot} bs=1024 count=250 conv=sync ${remote+'|'} \
                     30:        ${remote-"of=$tape"} ${remote+'/usr/local/n20b 1024 ">" $tape'}
                     31: echo "Add image of mini-root file system"
                     32: eval dd if=/dev/r${miniroot} count=205 bs=n20b conv=sync ${remote+'|'} \
                     33:        ${remote-"of=$tape"} ${remote+'/usr/local/n20b ">" $tape'}
                     34: echo "Add full dump of real file system"
                     35: /etc/${remote+r}dump 0uf $remote${remote+:}${tape} /nbsd
                     36: echo "Done, rewinding tape"
                     37: $remote mt -t ${tape} rew &

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.