#!/bin/sh
# Wrapper script for starting The Ur-Quan Masters

# This is the file that keeps the accelerometer joystick driver alive
touch /opt/uqm/accelemymote-live-trigger
/opt/uqm/accelemymote &

/opt/uqm/uqm --contentdir=/opt/uqm/content --fullscreen

# Get rid of the trigger file so the joystick driver will die
rm /opt/uqm/accelemymote-live-trigger
