|
|
1.1 ! root 1: : mkdist 10/19/90 ! 2: : Usage: mkdist [fha \| fqa \| fva] ! 3: : Make a 3.5 or 5.25 diskette distribution kit from /distrib. ! 4: : Run me as root. ! 5: ! 6: if [ $# -ne 1 ] ; then ! 7: echo Usage: mkdist [fha \| fqa \| fva] ! 8: exit 1 ! 9: fi ! 10: ! 11: if [ $1 = fqa0 ] ; then ! 12: export MAJOR=4 ! 13: export MINOR=13 ! 14: export BLOCKS=1440 ! 15: export DEV=/dev/fqa0 ! 16: export BOOT=boot.fqa ! 17: export MNT=/f0 ! 18: elif [ $1 = fha1 ] ; then ! 19: export MAJOR=4 ! 20: export MINOR=14 ! 21: export BLOCKS=2400 ! 22: export DEV=/dev/fha1 ! 23: export BOOT=boot.fha ! 24: export MNT=/f0 ! 25: elif [ $1 = fva0 ] ; then ! 26: export MAJOR=4 ! 27: export MINOR=15 ! 28: export BLOCKS=2880 ! 29: export DEV=/dev/fva0 ! 30: export BOOT=boot.fva ! 31: export MNT=/f0 ! 32: else ! 33: echo Usage: makedist [fha \| fqa \| fva] ! 34: exit 1 ! 35: fi ! 36: ! 37: : Get a version id. ! 38: echo -n 'Enter id: ' ! 39: read id ! 40: ! 41: : Split /distrib to boot disk in /distrib1, ! 42: : files from Files.last.f[vh]a in /distrib3, and remainder in /distrib2. ! 43: : splitdist $1 ! 44: : /etc/unmkfs /distrib2 $BLOCKS -pprotos/$1.a ! 45: : /etc/unmkfs /distrib3 $BLOCKS -pprotos/$1.b ! 46: : Build a boot disk. ! 47: n=1 ! 48: echo -n "Insert disk $n and hit enter... " ! 49: read x ! 50: mkboot $1 ! 51: /etc/mount $DEV $MNT ! 52: touch $MNT/$id.$n ! 53: echo "Fix /etc/brc.install: /etc/install -b $id $DEV ndisks ..... [enter]" ! 54: read xxxx ! 55: me $MNT/etc/brc.install ! 56: echo -n "Edit bin/mount and set alias f0 to be $DEV: [enter]" ! 57: read x ! 58: me $MNT/bin/mount ! 59: /etc/umount $DEV ! 60: ! 61: : Build remainder of kit. ! 62: for i in protos/$1.* ! 63: do ! 64: n=`expr $n + 1` ! 65: echo -n "Insert disk $n and hit enter... " ! 66: read x ! 67: echo "Bump i-node count by hand [enter] ..." ! 68: read x ! 69: me $i ! 70: /etc/fdformat -i 6 $DEV ! 71: /etc/mkfs -d $DEV $i ! 72: /etc/mount $DEV $MNT ! 73: touch $MNT/$id.$n ! 74: /etc/umount $DEV ! 75: done
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.