#!/usr/bin/sh
# @(#) $Header: tsmstart,v 72.2 94/04/04 14:13:14 ssa Exp $
#############################################################################

# This is the "tsmstart" shell script that is used to start the 
#     Terminal Session Manager "tsm"
#
#     Usage: tsmstart [<optional args>]

# Add "$TSMPATH/bin" or "/usr/tsm/bin" to user's path if not already there.

if [ -z "$TSMPATH" ]
then
	case $PATH in
	*$TSMPATH/bin*)
		;;
	*)
		PATH=$PATH:$TSMPATH/bin
		;;
	esac
else
	case $PATH in
	*/usr/tsm/bin*)
		;;
	*)
		PATH=$PATH:/usr/tsm/bin
		;;
	esac
fi

export PATH

if [ "$#" -gt 0 ]
then
	exec tsm "$@"
else
	exec tsm
fi
