#!/bin/sh

if [ -f /etc/profile.d/esdl.sh ]; then
  . /etc/profile.d/esdl.sh
fi

for conf in /etc/wings3d.rc ${HOME}/.wings3d.rc; do
  if [ -f ${conf} ]; then
    . ${conf}
  fi
done

exec /usr/bin/erl -noinput -smp disable -pa ${ESDL_PATH}/ebin -s wings_start start_halt "$@"
