#!/bin/sh

#####################################################################################################

#If we aren't running from the cmd-line,
if [ "$COMMAND_LINE_INSTALL" ] ; then

	#Add the LoginWindow Launch Info
	"$1/Contents/Resources/AddLoginWindowItem.pl" "$1" "$2" "$3"

	#Start the Lurk n' Launch
        /usr/bin/perl "$1/Contents/Resources/CreateLaunchScript.pl" "$1" "$2" "$3"

else

	echo
	echo "********************************************************************************"
	echo "To complete the installation, run the firmware updater tool by typing:"
	echo
	echo "	/Applications/Utilities/Xserve\ Firmware\ Updater.app/Contents/MacOS/Xserve\ Firmware\ Updater -r"
	echo
	echo "And follow the remaining instructions."
	echo "********************************************************************************"
	echo
	
fi

#####################################################################################################

exit 0
