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

  1. #ident    "@(#)pkg.cmds:i386/pkg/cmds/request    1.7.1.4"
  2. #ident    "$Header: $"
  3.  
  4.  
  5. #    request script for cmds package installation
  6. #    don't pdelete. Can't padd once it is pdeleted.
  7.  
  8. trap 'exit 3' 15
  9.  
  10. pkginfo lp >/dev/null 2>&1
  11. if [ "$?" = "0" ]
  12. then
  13.     CLASSES="$CLASSES post"
  14. else
  15.     # If we are installing from the set, is lp being installed now?
  16.     for i in $PKGLIST
  17.     do
  18.         case $i in
  19.         lp)    CLASSES="$CLASSES post";;
  20.         esac
  21.     done 
  22. fi
  23.  
  24. cat  >$1 <<!
  25. CLASSES='$CLASSES'
  26. !
  27.  
  28. SCRIPTS=/usr/sbin/pkginst
  29. AUTOMERGE=Yes
  30. PKGINSTALL_TYPE=NEWINSTALL
  31.  
  32. # Call chkpkgrel to determine installation type.
  33. ${SCRIPTS}/chkpkgrel
  34. PKGVERSION=$?
  35.  
  36. case $PKGVERSION in
  37.     2)    PKGINSTALL_TYPE=OVERLAY ;;
  38.     4)     PKGINSTALL_TYPE=UPGRADE ;;
  39.     6)     PKGINSTALL_TYPE=UPGRADE2 ;;
  40.     *)    ;;
  41. esac
  42.  
  43. # Save upgrade/overlay variables in response file.
  44. echo AUTOMERGE=\"${AUTOMERGE}\" >> $1
  45. echo PKGINSTALL_TYPE=\"${PKGINSTALL_TYPE}\" >>$1
  46.  
  47. exit 0
  48.  
  49.