home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / tls / tls002.2.Z / tls002.2 / tmp / init.s3ccon next >
Encoding:
Text File  |  1992-01-13  |  753 b   |  51 lines

  1. :
  2. #
  3. #    init.s3ccon
  4. #
  5. #    Copyright (C) 1991 Xware.
  6. #
  7.  
  8. PATH=/bin:/usr/bin:/etc:/etc/conf/bin
  9. PERM=/etc/perms/inst            # OS (link kit) permlist
  10.  
  11. : ${OK=0} ${FAIL=1}
  12.  
  13. #
  14. # exit with the status passed as argument
  15. #
  16.  
  17. cleanup() 
  18. {
  19.     trap '' 1 2 3 15
  20.     exit $1
  21. }
  22.  
  23. #
  24. # main()
  25. #
  26.  
  27. cd /
  28.  
  29. trap 'echo "\nInterrupted! Exiting ..."; cleanup 1' 1 2 3 15
  30.  
  31. #
  32. # back up the original driver and copy the new one into place
  33. #
  34.  
  35. if [ -f /etc/conf/pack.d/vga/Driver.o -a ! -f /etc/conf/pack.d/vga/Driver.ORG ] ; then
  36.     cp /etc/conf/pack.d/vga/Driver.o /etc/conf/pack.d/vga/Driver.ORG
  37. fi
  38.  
  39. cp /etc/conf/pack.d/vga/Driver.o /etc/conf/pack.d/vga/Driver.org
  40. cp /etc/conf/pack.d/vga/Driver.s3c /etc/conf/pack.d/vga/Driver.o
  41.  
  42. #
  43. # relink the kernel
  44. #
  45.  
  46. cd /etc/conf/cf.d
  47. ./link_unix
  48.  
  49. cleanup 0
  50.  
  51.