]> icculus.org git repositories - divverent/nexuiz.git/blob - nexuiz-linux.sh
generalized physics to have Quake-style and Nexuiz-style air control in the same...
[divverent/nexuiz.git] / nexuiz-linux.sh
1 #!/bin/sh
2
3 path="`dirname \"${0}\"`"
4 link="`readlink \"${0}\"`"
5
6 lsmod | grep ac97 > /dev/null 2>&1 && sndspeed="-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 exec ./${nexuiz} "${@}" ${sndspeed}