osiris ~ # cat /usr/games/bin/tc-elite #!/bin/sh SUBDIR="." #---------------------------------------- script=$0 count=0 while [ -L "$script" ] do script=`perl -e "print readlink(\"$script\"), \"\n\""` count=`expr $count + 1` if [ $count -gt 100 ] then echo "Too many symbolic links" exit 1 fi done GAME_DIR=`dirname $script` cd $GAME_DIR cd $SUBDIR et "$@" +set fs_game tcetest