home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / Other / Coherent / DemonArchives / sources32 / utils / 40bootdsk.Z / 40bootdsk
Encoding:
Text File  |  1995-05-24  |  3.7 KB  |  113 lines

  1. echo "This is for COHERENT 4.0.X only"
  2.  
  3. echo "This program will build a bootable floppy disk for the COHERENT O/S."
  4. echo "It is important to note however, that we do not endorse or recommend"
  5. echo "running COHERENT from a bootable disk."
  6. echo
  7. echo "LIMITED WARRANTY"
  8. echo "IN NO EVENT WILL MWC BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING ANY LOST"
  9. echo "SAVINGS, LOST DATA, DAMAGED HARDWARE, OR ANY OTHER INCIDENTAL OR"
  10. echo "CONSEQUENTIAL DAMAGES ARISING FROM THE USE OR INABILITY TO USE THIS"
  11. echo "BOOTABLE DISK EVEN IF MWC OR AN AUTHORIZED MWC DEALER OR AGENT HAS BEEN"
  12. echo "ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY"
  13. echo "OTHER PARTY."
  14. echo
  15. echo "CAVEAT UTILITOR        CAVEAT UTILITOR        CAVEAT UTILITOR"
  16. echo
  17. echo "THIS CAN ONLY BE EXECUTED AS THE ROOT OR SU USER. ABORT NOW IF YOU ARE"
  18. echo "NOT LOGGED IN AS ROOT OR SU. (This program cannot be run in background!)"
  19. echo
  20. echo "Please have on hand a disk that has been formatted and mkfs'd and "
  21. echo "badscanned. If you don't have this ready, hit CTRL-C NOW to abort this "
  22. echo "program in order to prepare a disk."
  23. sleep 5
  24. echo "Please insert the prepared high density disk in drive A"
  25. sleep 3
  26. echo "Please enter the name of your 'A' device as shown in the 'Floppy Disk'"
  27. echo "article of the lexicon.    (5.25 is fha0      3.5 is fva0)"
  28. read i
  29. echo "If you typed fha0 above, type fha now or type fva if you entered fva0 above:"
  30. read h
  31. cp /conf/boot.$h /dev/$i
  32. sleep 5
  33. /etc/mount /dev/$i /f0
  34. sleep 5
  35. echo
  36. echo "Copying a bunch of files, please wait or read the comics......."
  37. cp /tboot /f0 | cp /coherent /f0 |
  38. sleep 2
  39. mkdir /f0/bin 
  40. sleep 2
  41. cp /bin/sh /f0/bin
  42. cp /bin/sync /f0/bin
  43. cp /bin/date /f0/bin
  44. sleep 2
  45. mkdir /f0/etc
  46. sleep 7
  47. cp /etc/init /f0/etc
  48. cp /etc/brc /f0/etc
  49. cp /etc/drvld.all /f0/etc
  50. sleep 10
  51. cp /etc/timezone /f0/etc
  52. cp /etc/ATclock /f0/etc
  53. sleep 7
  54. mkdir /f0/conf
  55. sleep 7
  56. mkdir /f0/conf/kbd
  57. sleep 7
  58. cp /conf/kbd/us /f0/conf/kbd
  59. sleep 2
  60. cpdir /drv /f0/drv
  61. sleep 20
  62. mkdir /f0/dev
  63. sleep 2
  64. cpdir -d /dev /f0/dev
  65. sleep 10
  66. mkdir /f0/tmp
  67. sleep 2
  68. cp /etc/mount /f0/etc
  69. cp /etc/umount /f0/etc
  70. sleep 5
  71. mkdir /f0/mnt
  72. chown sys /f0/coherent
  73. chgrp sys /f0/coherent
  74. ln -f /f0/coherent /f0/autoboot
  75. echo
  76. echo
  77. echo "The program must now patch the kernel on the boot disk, in order to make"
  78. echo "it bootable as a floppy."
  79. echo
  80. echo "Type 4,15 and hit ENTER if your disk is 3.5 HD, or 4,14 for 5.25 HD: "
  81. echo "BE SURE TO INCLUDE THE COMMA BETWEEN THE TWO NUMBERS AND NO SPACES"
  82. read z
  83. sleep 5
  84. /conf/patch /f0/coherent "rootdev=makedev($z)"  "pipedev=makedev($z)"
  85. sleep 10
  86. echo "We will now invoke the editor micro-emacs and bring up the /etc/brc file"
  87. echo "that was copied to the boot disk. It is important that you enter the line"
  88. echo "exit 1   just below the line that reads  /etc/drvld.all. When you insert"
  89. echo "this line, hit CTRL-Z to save and exit"
  90. echo "Please wait..."
  91. sleep 15
  92. me /f0/etc/brc
  93. echo "The following utilities will be copied to the boot disk so that you can"
  94. echo "perform basic tasks; lc, ls, more, ps, cp, cpdir, me, cpio, ustar"
  95. cp /bin/lc /f0/bin | cp /bin/ls /f0/bin | cp /bin/ps /f0/bin |
  96. cp /bin/cp /f0/bin | cp /bin/cpdir /f0/bin |
  97. sleep 7
  98. cp /usr/bin/more /f0/bin | cp /usr/bin/cpio /f0/bin | cp /usr/bin/ustar /f0/bin |
  99. cp /etc/fdisk /f0/etc | cp /etc/fsck /f0/etc |
  100. sleep 7
  101. chown bin /f0/etc/fsck | chgrp bin /f0/etc/fsck |
  102. echo "Please wait....."
  103. sleep 10
  104. chown bin /f0/bin/* | chgrp bin /f0/bin/*
  105. sleep 30
  106. echo
  107. echo "Your disk is now done but contains minimal capabilities. It is now up to"
  108. echo "you to choose additional commands you wish to copy to the boot disk. The boot"
  109. echo "is currently mounted in /f0, so you may begin copying additional commands"
  110. echo "or utilities to it right now if you wish. CAVEAT UTILITOR."
  111. sleep 5
  112. echo "TH-TH-Thats All Folk!"
  113.