Solaris 10 11/06 Installation Guide: Solaris Flash Archives (Creation and Installation)

ProcedureTo Create a Precreation Script

This script runs during archive creation. The script has various uses.

  1. Create the precreation script. Follow the guidelines that are described in Guidelines for Creating a Custom Script.

  2. Store the script in the /etc/flash/precreation directory.

Example 3–1 Excerpts From a Precreation Script

The following examples are excerpts from a precreation script.

Example 3–2 Precreation Script

echo "Test precreation script started" >> $FLASH_DIR/summary
cat /opt/TestApp/critical_file_list | flcheck -
if [ $? != 0 ]; then
	echo "Test precreation script failure" >> $FLASH_DIR/summary
	exit 1
echo "Test precreation script started" >> $FLASH_DIR/summary
	$FLASH_DIR/predeployment/.TestApplicationLicenceTransfer \
echo "Test precreation script finished" >> $FLASH_DIR/summary
exit 0