#!/bin/sh
OSNAME=`uname -s | tr [:upper:] [:lower:]`
if [ "$OSNAME" == "darwin" ] ; then
  OSPROC=`uname -p`
else
  OSPROC=`uname -m`
fi

# only currently support PPC and x86-32
if [ "$OSPROC" == "powerpc" ] ; then
  OSPROC="ppc"
else
  OSPROC="x86"
fi

OSID=${OSNAME}-${OSPROC}
wget -N -nv -O elaunch http://game.atitd.com/elaunch-${OSID}
chmod 755 elaunch
