home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / Other / Coherent / base / disk1.4.10.dd / etc / brc < prev    next >
Encoding:
Text File  |  1993-11-10  |  959 b   |  45 lines

  1. # /etc/brc.build
  2. # Wed Nov 10 08:54:23 1993 CST
  3.  
  4. # COHERENT executes this script when it boots.
  5. # This version invokes /etc/build
  6. # to install or update floppy-based COHERENT to the hard disk.
  7.  
  8. # Configure RAM disk and mount it on /tmp.
  9. /etc/mkfs /dev/ram1 384
  10. /etc/mount /dev/ram1 /tmp
  11.  
  12. # Initialize environment, etc.
  13. . /etc/.profile
  14.  
  15. # Load drivers.
  16. /etc/drvld.all
  17.  
  18. # Set the date from the system clock.
  19. . /etc/timezone
  20. /bin/date -s `/etc/ATclock` >/dev/null
  21.  
  22. # /etc/build reboots automatically on success.
  23. # Trap in case interrupted.
  24. trap 'echo; echo Aborted...; exit 1' 1 2 3
  25.  
  26. case "`/etc/boot_cmd`" in
  27.     begin*)
  28.         options=    ;;
  29.     update*)
  30.         options='-u'    ;;
  31.     *)
  32.         echo 'Installation/Update kit booted incorrectly.'
  33.         echo 'When booting, you must boot via "begin" or "update".'
  34.         echo 'Please reboot and try again...'
  35.         exit 1    ;;
  36. esac
  37.  
  38. if /etc/build $options
  39. then
  40. else
  41.     echo The COHERENT system installation failed, please reboot and try again.
  42. fi
  43. sync
  44. exit 1
  45.