]> icculus.org git repositories - divverent/nexuiz.git/blob - nexuiz-linux.sh
new gamemode: arena
[divverent/nexuiz.git] / nexuiz-linux.sh
1 #!/bin/sh
2
3 path=`dirname ${0}`
4 link=`readlink ${0}`
5
6 sndspeed=`lsmod | grep ac97 > /dev/null 2>&1 && echo "-sndspeed 48000"`
7
8 [ -n "$link" ] && path=`dirname $link`
9 cd "$path"
10
11 case "$(uname -m)" in
12   x86_64)       nexuiz="nexuiz-linux-x86_64-sdl" ;;
13   *)            nexuiz="nexuiz-linux-686-sdl" ;;
14 esac
15
16 echo exec ./$nexuiz $sndspeed "${@}"