#!/bin/bash
#
# ts$type: $type system troubleshooting setup script
#
# Usage: ts$type


TSTOP=${TSDIR:-/usr/local}
TSBIN=${TSBIN:-$TSTOP/bin}
TSLIB=${TSLIB:-$TSTOP/lib/ts}
[ -e $TSLIB ] || TSLIB="/mnt/sysimage/$TSLIB" 

# The command name is..
#
cmd="$(basename $0)"
#
# ...from which we derive the type of problem being run
type=$(echo $cmd | sed 's,^ts,,')

# The rest of the heavy-lifting is done in a common library
if [ -f $TSLIB/common ]  
then
	. $TSLIB/common
else
	echo "Could not find $TSLIB/common. Exiting" >&2
	exit 1
fi 
