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

  1. # /etc/brc
  2. # Thu Nov  4 14:37:13 1993 CST
  3.  
  4. # COHERENT executes this script when it boots.
  5. # If the exit status is 0, it goes multiuser immediately.
  6.  
  7. # Set the date from the system clock.
  8.  
  9. . /etc/timezone
  10. /bin/date -s `/etc/ATclock` >/dev/null
  11.  
  12. # Load keyboard table, if needed.
  13.  
  14. /etc/drvld.all
  15.  
  16. # Check COHERENT filesystems.
  17. # Go multiuser if ok, reboot if not.
  18. # Remain single user if interrupted.
  19.  
  20. trap 'echo Aborted...; exit 1' 1 2 3
  21.  
  22. echo '\nChecking filesystems...\n'
  23. if /etc/fsck -q
  24. then
  25.     exit 0
  26. else
  27.     /etc/reboot
  28. fi
  29. exit 1
  30.