home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / esle / install / preinstall < prev   
Encoding:
Text File  |  1998-08-19  |  699 b   |  23 lines

  1. #ident    "@(#)preinstall    1.2"
  2. #    copyright    "%c%"
  3.  
  4. SCRIPTS=/usr/sbin/pkginst
  5. PKGINSTALL_TYPE=NEWINSTALL
  6.  
  7. # Since there is no response file, pkgsavfiles will automatically
  8. # run chkpkgrel and save AUTOMERGE and PKGINSTALL_TYPE in
  9. # /etc/inst/save.user/${PKGINST}.env
  10.  
  11. ${SCRIPTS}/pkgsavfiles ${PKGINST}
  12.  
  13. # When pkgsavfiles is called without previously calling chkpkgrel,
  14. # AUTOMERGE get set to "Yes" automatically, which we don't want since
  15. # this package didn't exist in 1.1.  (The postinstall script takes
  16. # care of special upgrade processing in this case.)
  17.  
  18. . /etc/inst/save.user/${PKGINST}.env
  19. if [ "$PKGINSTALL_TYPE" != "OVERLAY" ]
  20. then
  21.     echo 'AUTOMERGE="No"' >>/etc/inst/save.user/${PKGINST}.env
  22. fi
  23.