: 'use a menu system, provide the menu system root directory as a parameter'

case $# in
	0)
		echo "usage: $0 <menu system name>"
		exit ;;
esac
cd $1 ; shift
HOME=`pwd` ; export HOME
# Comment the following, the .profile has already been read
# [ -f .profile ] && . .profile
iDIS=${iDIS-/usr/iDIS}
iDISBIN=${iDISBIN-/usr/iDISbin}
SEDITOR=${SEDITOR-vi}
VERSION=sys3
SAEXEC=$iDISBIN
TERMCAP=$iDIS/menus/termcap
TERM=${TERM-none}
case $TERM in
	none)
		echo "Choose the terminal proper type from:"
		cat $iDISBIN/term.file
		echo -n 'Enter terminal type: '
		read TERM ;;
esac
PATH=:$SAEXEC:$HOME:/bin:/usr/bin
CONTPATH=$HOME/control/
export iDIS iDISBIN SEDITOR VERSION SAEXEC TERMCAP TERM PATH CONTPATH
echo one moment, initializing system
exec msh -p $CONTPATH $*
