home *** CD-ROM | disk | FTP | other *** search
- # $Novell-NWU: $Header: /proj6/ncps/nwu_top/nws/pkg/unixware/nws/postinstall,v 1.2 1996/04/06 00:05:18 vtag Exp $
- # nws postinstall script
-
- # trap intr
- trap "" 2
-
- if [ "$RANDOM" = "$RANDOM" ]
- then
- exec /usr/bin/winxksh $0 $*
- fi
-
- # Dot in the temporary response file from the request script
- # (The real response file is not being propagated to this phase)
- . /tmp/nws.response
-
- # Now remove the file
- /usr/bin/rm -f /tmp/nws.response
-
- exec 2>> /tmp/nws.post.err
-
- # copy file /tmp/MLS.000 if it exists to /etc/netware/licenses
- if [ -f /tmp/MLS.000 ]
- then
- /usr/bin/mkdir /etc/netware/licenses 2> /dev/null
- /usr/bin/cp /tmp/MLS.000 /etc/netware/licenses 2> /dev/null
- fi
-
- [ -n "$DEBUG" ] && set -x
-
- if [ -f /tmp/nws.done ]
- then
- REBOOT_SYSTEM=`/usr/bin/cat /tmp/nws.done`
- else
- REBOOT_SYSTEM=0
- fi
-
- # Remove file indicating the last package that was added.
- # This flagged the package to display the final install screen
- rm -f /tmp/$LASTPKG
-
- if [ $REBOOT_SYSTEM = "1" ]
- then
- exit 10 # System will be rebooted
- else
- exit 0
- fi
-
- # Summary screen to show status of packages that were added
-