home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / Other / Coherent / base / disk1.4.10.dd / etc / brc.install < prev    next >
Encoding:
Text File  |  1994-05-23  |  1.0 KB  |  48 lines

  1. # /etc/brc.install
  2. # Mon May 23 16:50:50 1994 CDT
  3.  
  4. # Template file Mon May  2 08:26:35 1994 CDT
  5.  
  6. # COHERENT executes this script when it boots.
  7. # If the exit status is 0, it goes multiuser immediately.
  8. # This version invokes /etc/install
  9. # to complete the installation of COHERENT.
  10.  
  11. # Use the following when pipedev is set to /dev/ram1:
  12. # /etc/mkfs /dev/ram1 384
  13. # /etc/mount /dev/ram1 /tmp.pipe
  14.  
  15. # Set the date from the system clock.
  16.  
  17. . /etc/timezone
  18. /bin/date -s `/etc/ATclock` >/dev/null
  19.  
  20. # Load keyboard table, if necessary.
  21.  
  22. /etc/drvld.all
  23.  
  24. # Trap in case interrupted.
  25.  
  26. trap 'echo; echo Aborted...; exit 1' 1 2 3
  27. if /etc/install -b Coh_420 /dev/fva0 4
  28. then
  29.     sync
  30.     /etc/coh_intro
  31.     echo Checking filesystems, please wait...
  32.     if /etc/fsck
  33.     then
  34.         echo You are now running single user COHERENT \(as root\).
  35.         echo Type \<Ctrl-D\> if you wish to go multiuser.
  36.         sync
  37.         exit 1
  38.     else
  39.         echo System rebooting automatically, please wait...
  40.         /etc/reboot
  41.         exit 1
  42.     fi
  43. else
  44.     echo The COHERENT system installation failed, please reboot and try again.
  45. fi
  46. sync
  47. exit 1
  48.