#!/bin/sh
#
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved. 
# Use is subject to license terms.
#
#pragma ident	"@(#)postinstall	1.7	08/07/24 SMI"
#

ECHO=/usr/bin/echo
UNAME=/usr/bin/uname

# Inform the user that the latest updates for the current OS should be installed
# prior to using Live Upgrade. Only do this if installing on current system, not
# on a client (alternate root) system.

if [ -z "${PKG_INSTALL_ROOT}" ]; then
	LU_SYSTEM_HWARCH="`${UNAME} -p`"
	LU_SYSTEM_OSVERSION="`${UNAME} -sr`"

	${ECHO} "
=========================================================================
                              IMPORTANT NOTICE

                  Patches Needed to Run Solaris Live Upgrade

Correct operation of Solaris Live Upgrade requires that a limited set of
patch revisions be installed for ${LU_SYSTEM_OSVERSION} for the ${LU_SYSTEM_HWARCH} platform.

Before installing or running Live Upgrade, you are required to install a
limited set of patch revisions.  Make sure you have the most recently
updated patch list by consulting sunsolve.sun.com. Search for the technical
instruction (info doc) 206844 on the SunSolve(tm) web site.

Live Upgrade may fail to work properly if the latest limited set
of patch revisions are not installed on this system.

=========================================================================
"
fi

exit 0
