Annotation of coherent/a/usr/bob/mkboot, revision 1.1.1.1

1.1       root        1: 
                      2: export SHIP=/ship
                      3: export USE_BINARIES=/interim
                      4: KERNEL=$SHIP/distrib1/coherent
                      5: 
                      6: case $1 in
                      7: 
                      8:        fva0) BLOCKS=2880;MINOR=15;DEV=fva0;BOOT=boot.fva;;
                      9:        fha0) BLOCKS=2400;MINOR=14;DEV=fha0;BOOT=boot.fha;;
                     10:        fva1) BLOCKS=2880;MINOR=15;DEV=fva1;BOOT=boot.fva;;
                     11:        fha1) BLOCKS=2400;MINOR=14;DEV=fha1;BOOT=boot.fha;;
                     12:           *) echo "\007Usage: cobble [device name (fva0, fha0, fva1, fha1)] [version]";
                     13:              exit 1;;
                     14: esac
                     15: 
                     16:        
                     17: echo "Place a blank diskette in your floppy drive and press <return>\c"
                     18: read NIL
                     19: 
                     20: 
                     21: # format and mkfs floppy
                     22: 
                     23: #fdformat -av /dev/$DEV
                     24: #mkfs /dev/$DEV $BLOCKS
                     25: 
                     26: # write boot block to floppy
                     27: 
                     28: echo "Writing boot block..."
                     29: cp $USE_BINARIES/conf/$BOOT /dev/$DEV
                     30: 
                     31: # mount floppy and copy kernel to floppy
                     32: 
                     33: /etc/mount /dev/$DEV /f0
                     34: cpdir -ad $SHIP/distrib1 /f0
                     35: cpdir -ad dev /f0/dev
                     36: 
                     37: : Patch the /coherent image and link it to /begin.
                     38: 
                     39: cp $KERNEL /f0/coherent
                     40: 
                     41: # patch floppy for diskette parameters, place appropriate permissions on kernel
                     42: 
                     43: /conf/patch  /f0/coherent rootdev_=makedev\(4,$MINOR \)
                     44: /conf/patch  /f0/coherent pipedev_=makedev\(8,131 \)
                     45: /conf/patch  /f0/coherent ronflag_=1
                     46: chown sys /f0/coherent
                     47: chgrp sys /f0/coherent
                     48: chmod 400 /f0/coherent
                     49: 
                     50: ln -f /f0/coherent /f0/autoboot
                     51: ln -f /f0/etc/brc.build /f0/etc/brc
                     52: 
                     53: : Cleanup.
                     54: /etc/umount /dev/$DEV
                     55: sync

unix.superglobalmegacorp.com

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