home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / osmp / install / request < prev   
Text File  |  1998-08-19  |  2KB  |  54 lines

  1. #ident  "@(#)pkg.osmp:ifiles/request    1.24.2.3"
  2.  
  3. #exec 2>/tmp/osmp.err
  4. #set -x
  5.  
  6. PKG_I18N_SCRIPTS=${REQDIR}/inst/locale/${LOCALE}/${PKGINST}
  7. REQ_SCRIPTS=${REQDIR}/${PKGINST}
  8.  
  9. [ ! -d /etc/inst/locale/C/menus/${PKGINST} ] && mkdir -p /etc/inst/locale/C/menus/${PKGINST}
  10.  
  11. # No need to copy file to /tmp if it's already copied
  12. [ ! -f /tmp/${PKGINST}.req.sh ] && {
  13.  
  14.     if [ -f ${PKG_I18N_SCRIPTS}/${PKGINST}.req.sh ]
  15.     then
  16.         cp ${PKG_I18N_SCRIPTS}/${PKGINST}.req.sh /tmp
  17.         cp ${PKG_I18N_SCRIPTS}/${PKGINST}.post.sh /tmp
  18.         cp ${PKG_I18N_SCRIPTS}/${PKGINST}_wininit /tmp
  19.         cp ${PKG_I18N_SCRIPTS}/${PKGINST}_winexit /tmp
  20.         cp ${PKG_I18N_SCRIPTS}/txtstrings /etc/inst/locale/${LOCALE}/menus/${PKGINST}
  21.     else
  22.         cp ${REQ_SCRIPTS}/${PKGINST}.req.sh  /tmp
  23.         cp ${REQ_SCRIPTS}/${PKGINST}.post.sh  /tmp
  24.         cp ${REQ_SCRIPTS}/${PKGINST}_wininit  /tmp
  25.         cp ${REQ_SCRIPTS}/${PKGINST}_winexit  /tmp
  26.         cp ${REQ_SCRIPTS}/txtstrings /etc/inst/locale/C/menus/${PKGINST}
  27.     fi
  28.  
  29.     chmod +x /tmp/${PKGINST}.req.sh
  30.     chmod +x /tmp/${PKGINST}.post.sh
  31.  
  32.     #
  33.     # Do not run request script at this time if package is being
  34.     # installed as part of the initial boot floppy installation and
  35.     # this is the request script being invoked. 
  36.     #
  37.     # We use the existence of postreboot.sh file as an indicator whether
  38.     # we are in system installation phase or post pkgadd phase.  
  39.  
  40.     [ -f /etc/inst/scripts/postreboot.sh ] && exit 0
  41.  
  42. }
  43.  
  44. #
  45. # Only get here if installing OSMP package after initial system installation
  46. #
  47.  
  48. /tmp/${PKGINST}.req.sh
  49. rc=$?
  50. rm -f /tmp/${PKGINST}.req.sh 1>/dev/null 2>&1
  51. rm -f /tmp/${PKGINST}_wininit /tmp/${PKGINST}_winexit 1>/dev/null 2>&1
  52. exit $rc
  53.  
  54.