home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 204.img / SC386BN1.TD0 / etc / init.inst < prev    next >
Encoding:
Text File  |  1988-03-11  |  957 b   |  33 lines

  1. :
  2. #    @(#) inst96.src 1.4 87/12/28 
  3. #
  4. #    Copyright (C) The Santa Cruz Operation, 1985.
  5. #    This Module contains Proprietary Information of
  6. #    The Santa Cruz Operation, Microsoft Corporation
  7. #    and AT&T, and should be treated as Confidential.
  8. #
  9. #    /tmp/init.inst - onetime initialization script
  10. #
  11. PATH=/bin:/usr/bin:/etc
  12.  
  13. # Return code definitions
  14. : ${OK=0} ${FAIL=1} ${STOP=10} ${HALT=11}
  15.  
  16. # Must be at root for fixperm to work
  17. cd /
  18.  
  19. # Move in the final /etc/default/boot file
  20. mv /etc/default/boothd /etc/default/boot
  21.  
  22. # Initialize everything that was on the installation floppies
  23. /etc/fixperm -c -dPERM -dINST -dRTS -dFD48 -dFD96 /etc/inst.perms
  24. /etc/fixperm -c -dPERM /etc/dsmd.perms /etc/tpmd.perms
  25.  
  26. # Clear out /dev/recover if it exists.
  27. [ -b /dev/recover ] &&
  28.     echo "\000\c" | dd of=/dev/recover bs=10k conv=sync 2>/dev/null
  29.  
  30. # Set up /etc/default/boot with /dev/scratch entry
  31. [ -b /dev/scratch ] && echo "SCRATCH=/dev/scratch" >> /etc/default/boot
  32. exit $STOP
  33.