#!/bin/sh
  
ln -f /home/servers/vserver/home/base/vm/game.qvm.DnC /home/servers/vserver/home/base/vm/game.qvm
ln -f /home/servers/vserver/tremded.x86.DnC /home/servers/vserver/tremded.x86


BINARY="/home/servers/vserver/tremded.x86"
BASE_PATH="/home/servers/vserver"
NET_IP="192.168.56.50"
HOME_PATH="/home/servers/vserver/home"
CONFIG_FILE="server.cfg"

# Tremulous binaries don't understand "regular" command line parameters. Let's
# catch them here, to avoid accidently launching the binary.

 screen -dmS tremulous  ${BINARY} +set vm_game 0 +set net_ip ${NET_IP} +set dedicated 2 + set fs_homepath ${HOME_PATH} + set fs_basepath ${BASE_PATH} + exec ${CONFIG_FILE} 
exit $?
