#!/bin/sh

DISPLAY=
export LD_LIBRARY_PATH=/usr/lib/:/usr/i486-linux-libc5/lib

if [ `whoami` = "root" ];then
   echo "***********************************"
   echo "* You can't run ttyquake as root. *"
   echo "***********************************"
   exit
fi

if [ -u ./squake ];then
   echo "**********************************"
   echo "* ./squake is setuid.  ttyquake  *"
   echo "* won't work unless you turn off *"
   echo "* the setuid bit.  As root,      *"
   echo "* please do:                     *"
   echo "*   chmod -s squake              *"
   echo "* and then run ttyquake again.   *"
   echo "**********************************"
   exit
fi

./squake -nostdout -nosound $*

