home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / nws / install / postinstall < prev    next >
Text File  |  1998-08-19  |  1KB  |  49 lines

  1. # $Novell-NWU: $Header: /proj6/ncps/nwu_top/nws/pkg/unixware/nws/postinstall,v 1.2 1996/04/06 00:05:18 vtag Exp $
  2. # nws postinstall script 
  3.  
  4. # trap intr
  5. trap "" 2
  6.  
  7. if [ "$RANDOM" = "$RANDOM" ]
  8. then
  9.     exec /usr/bin/winxksh $0 $*
  10. fi
  11.  
  12. # Dot in the temporary response file from the request script
  13. # (The real response file is not being propagated to this phase)
  14. . /tmp/nws.response
  15.  
  16. # Now remove the file
  17. /usr/bin/rm -f /tmp/nws.response
  18.  
  19. exec 2>> /tmp/nws.post.err
  20.  
  21. # copy file /tmp/MLS.000 if it exists to /etc/netware/licenses
  22. if [ -f /tmp/MLS.000 ]
  23. then
  24.     /usr/bin/mkdir /etc/netware/licenses 2> /dev/null
  25.     /usr/bin/cp /tmp/MLS.000 /etc/netware/licenses 2> /dev/null
  26. fi
  27.  
  28. [ -n "$DEBUG" ] && set -x
  29.  
  30. if [ -f /tmp/nws.done ]
  31. then
  32.     REBOOT_SYSTEM=`/usr/bin/cat /tmp/nws.done`
  33. else
  34.     REBOOT_SYSTEM=0
  35. fi
  36.  
  37. # Remove file indicating the last package that was added.
  38. # This flagged the package to display the final install screen
  39. rm -f /tmp/$LASTPKG
  40.  
  41. if [ $REBOOT_SYSTEM = "1" ]
  42. then
  43.     exit 10  # System will be rebooted
  44. else
  45.     exit 0
  46. fi
  47.  
  48. # Summary screen to show status of packages that were added
  49.