All pastes #1721408 Raw Edit

ttyquake

public text v1 · immutable
#1721408 ·published 2009-12-20 16:18 UTC
rendered paste body
#!/bin/sh

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

if [ `whoami` = "root" ];then
   echo "***********************************"
   echo "* You can't run ttyquake as root. *"
   echo "* Didn't you read the damn README *"
   echo "* file?                           *"
   echo "***********************************"
   exit
fi

if [ -u ./tyr-quake ];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 $*
#./darkplaces-linux-686-sdl -nosound $*
./tyr-quake -nosound $*