home *** CD-ROM | disk | FTP | other *** search
- echo "This is for COHERENT 4.0.X only"
-
- echo "This program will build a bootable floppy disk for the COHERENT O/S."
- echo "It is important to note however, that we do not endorse or recommend"
- echo "running COHERENT from a bootable disk."
- echo
- echo "LIMITED WARRANTY"
- echo "IN NO EVENT WILL MWC BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING ANY LOST"
- echo "SAVINGS, LOST DATA, DAMAGED HARDWARE, OR ANY OTHER INCIDENTAL OR"
- echo "CONSEQUENTIAL DAMAGES ARISING FROM THE USE OR INABILITY TO USE THIS"
- echo "BOOTABLE DISK EVEN IF MWC OR AN AUTHORIZED MWC DEALER OR AGENT HAS BEEN"
- echo "ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY"
- echo "OTHER PARTY."
- echo
- echo "CAVEAT UTILITOR CAVEAT UTILITOR CAVEAT UTILITOR"
- echo
- echo "THIS CAN ONLY BE EXECUTED AS THE ROOT OR SU USER. ABORT NOW IF YOU ARE"
- echo "NOT LOGGED IN AS ROOT OR SU. (This program cannot be run in background!)"
- echo
- echo "Please have on hand a disk that has been formatted and mkfs'd and "
- echo "badscanned. If you don't have this ready, hit CTRL-C NOW to abort this "
- echo "program in order to prepare a disk."
- sleep 5
- echo "Please insert the prepared high density disk in drive A"
- sleep 3
- echo "Please enter the name of your 'A' device as shown in the 'Floppy Disk'"
- echo "article of the lexicon. (5.25 is fha0 3.5 is fva0)"
- read i
- echo "If you typed fha0 above, type fha now or type fva if you entered fva0 above:"
- read h
- cp /conf/boot.$h /dev/$i
- sleep 5
- /etc/mount /dev/$i /f0
- sleep 5
- echo
- echo "Copying a bunch of files, please wait or read the comics......."
- cp /tboot /f0 | cp /coherent /f0 |
- sleep 2
- mkdir /f0/bin
- sleep 2
- cp /bin/sh /f0/bin
- cp /bin/sync /f0/bin
- cp /bin/date /f0/bin
- sleep 2
- mkdir /f0/etc
- sleep 7
- cp /etc/init /f0/etc
- cp /etc/brc /f0/etc
- cp /etc/drvld.all /f0/etc
- sleep 10
- cp /etc/timezone /f0/etc
- cp /etc/ATclock /f0/etc
- sleep 7
- mkdir /f0/conf
- sleep 7
- mkdir /f0/conf/kbd
- sleep 7
- cp /conf/kbd/us /f0/conf/kbd
- sleep 2
- cpdir /drv /f0/drv
- sleep 20
- mkdir /f0/dev
- sleep 2
- cpdir -d /dev /f0/dev
- sleep 10
- mkdir /f0/tmp
- sleep 2
- cp /etc/mount /f0/etc
- cp /etc/umount /f0/etc
- sleep 5
- mkdir /f0/mnt
- chown sys /f0/coherent
- chgrp sys /f0/coherent
- ln -f /f0/coherent /f0/autoboot
- echo
- echo
- echo "The program must now patch the kernel on the boot disk, in order to make"
- echo "it bootable as a floppy."
- echo
- echo "Type 4,15 and hit ENTER if your disk is 3.5 HD, or 4,14 for 5.25 HD: "
- echo "BE SURE TO INCLUDE THE COMMA BETWEEN THE TWO NUMBERS AND NO SPACES"
- read z
- sleep 5
- /conf/patch /f0/coherent "rootdev=makedev($z)" "pipedev=makedev($z)"
- sleep 10
- echo "We will now invoke the editor micro-emacs and bring up the /etc/brc file"
- echo "that was copied to the boot disk. It is important that you enter the line"
- echo "exit 1 just below the line that reads /etc/drvld.all. When you insert"
- echo "this line, hit CTRL-Z to save and exit"
- echo "Please wait..."
- sleep 15
- me /f0/etc/brc
- echo "The following utilities will be copied to the boot disk so that you can"
- echo "perform basic tasks; lc, ls, more, ps, cp, cpdir, me, cpio, ustar"
- cp /bin/lc /f0/bin | cp /bin/ls /f0/bin | cp /bin/ps /f0/bin |
- cp /bin/cp /f0/bin | cp /bin/cpdir /f0/bin |
- sleep 7
- cp /usr/bin/more /f0/bin | cp /usr/bin/cpio /f0/bin | cp /usr/bin/ustar /f0/bin |
- cp /etc/fdisk /f0/etc | cp /etc/fsck /f0/etc |
- sleep 7
- chown bin /f0/etc/fsck | chgrp bin /f0/etc/fsck |
- echo "Please wait....."
- sleep 10
- chown bin /f0/bin/* | chgrp bin /f0/bin/*
- sleep 30
- echo
- echo "Your disk is now done but contains minimal capabilities. It is now up to"
- echo "you to choose additional commands you wish to copy to the boot disk. The boot"
- echo "is currently mounted in /f0, so you may begin copying additional commands"
- echo "or utilities to it right now if you wish. CAVEAT UTILITOR."
- sleep 5
- echo "TH-TH-Thats All Folk!"
-