1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/bin/sh
case "$(uname -m)" in
x86_64) executable="nexuiz-linux-x86_64-dedicated" ;;
*) executable="nexuiz-linux-686-dedicated" ;;
esac
cd "`dirname "${0}"`"
if ! [ -x "$executable" ]; then
if [ -x "../$executable" ] && { [ -f ~/.nexuiz/data/server.cfg ] || [ -f ../data/server.cfg ]; }; then
cd ..
else
echo "This script is not properly set up yet."
echo "Please refer to the instructions in readme.txt."
echo "In short:"
echo "- copy server.cfg to the data directory and adjust its settings"
echo "- move this file to the main directory of your Nexuiz installation"
exit 1
fi
fi
exec ./${executable} +serverconfig server.cfg "${@}"
|