#!/bin/sh

trapFunction()
{
  trap - SIGHUP SIGINT SIGTERM
  kill $PID
  exit 0
}

# Start the KNX Stack.
/opt/gira/bin/knxstack $@ &
PID="$!"

trap trapFunction SIGHUP SIGINT SIGTERM

wait $PID

exit 0
