spinit 685 Bytes
#! /bin/sh
# --------------------------------------------------------------------
#        Copyright (C) 1997,1998 Nintendo. (Originated by SGI)
#        
#        $RCSfile: spinit,v $
#        $Revision: 1.1.1.1 $
#        $Date: 2002/05/02 03:27:22 $
# --------------------------------------------------------------------

LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH

$ROOT/usr/sbin/gload  rom &

GLOAD_PID=$!

trap "killall tex;  kill -9 $GLOAD_PID; exit" 1 2 3 15

#tex dso 
cd ui
echo "start UI"

if [ -f /usr/IRIXpro/bin/wishx ]
then
	/usr/IRIXpro/bin/wishx -f ./tex ../spintcl.so
elif [ -f /usr/bin/wishx ]
then
	/usr/bin/wishx -f ./tex ../spintcl.so
fi

kill -9 $GLOAD_PID
exit 0