2010-03-18 13:22:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
case "$(uname -m)" in
|
2017-10-17 00:34:23 +00:00
|
|
|
i?86) executable="xonotic-linux32-dedicated" ;; # Not supported anymore but you can build your own.
|
|
|
|
*) executable="xonotic-linux64-dedicated" ;;
|
2010-03-18 13:22:15 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
cd "`dirname "${0}"`"
|
|
|
|
|
|
|
|
if ! [ -x "$executable" ]; then
|
2010-03-30 20:55:57 +00:00
|
|
|
if [ -x "../$executable" ] && { [ -f ~/.xonotic/data/server.cfg ] || [ -f ../data/server.cfg ]; }; then
|
2010-03-18 13:22:15 +00:00
|
|
|
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"
|
2010-03-30 20:55:57 +00:00
|
|
|
echo "- move this file to the main directory of your Xonotic installation"
|
2010-03-18 13:22:15 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
exec ./${executable} +serverconfig server.cfg "${@}"
|