##########################################
# Merak Mail Server Installation package #
# (c) IceWarp Ltd. 1999-2006		 #
#					 #
#	All Rights Reserved		 #
#					 #
# http://www.icewarp.com 		 #
##########################################

functions()
	{
		SELFTMP=$0
		ORIGPWD=`pwd`
		REALPWD=`dirname $0`
		cd "$REALPWD"
		while [ -L "$SELFTMP" ]
			do
				SELFTMP=`readlink "$SELFTMP"`
				cd `dirname "$SELFTMP"`
				REALPWD=`pwd -P`
		done

		cd "$ORIGPWD"

		if [ "$INITIALIZED" != "1" ]
			then
				source $REALPWD/inc/functions.sh
		fi
	}

functions

copyright()
	{
		good ""
		hilite "Merak Mail Server"
		hilite "	© 1999-2006 IceWarp Ltd. "
		good "Wizard configuration assistant"
		good ""
		good "Logging is enabled to the following files for future reference:"
		good "	Errors: $ERRORLOG"
		good "	Actions: $WIZARDLOG"
	}

getscriptparams()
	{
		case $1 in
			*)
				clear
				copyright
				MENUROOT="ROOT"
				MENULIST="${SCRIPTDIR}/menu.lst"
				menu "Root menu" "$MENUROOT" "$MENULIST"
				;;
		esac
	}

getscriptparams $* 2>$ERRORLOG | tee $WIZARDLOG

exit 0

