#!/bin/sh
# chkconfig: 2345 98 02
### BEGIN INIT INFO
# Provides:          timesys-theatre
# Required-Start:    $local_fs
# Required-Stop:     
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Should-Start:      fb
# Short-Description: Start timesys-theatre at boot time
# Description:       Enable service provided by timesys-theatre.
# X-Start-Before:    
# X-Stop-After:      
# X-Timesys-Start-Number:  98
# X-Timesys-Stop-Number:  02
### END INIT INFO

PATH=/usr/bin:/bin:/usr/sbin:/sbin

export QWS_DISPLAY=LinuxFb:/dev/fb0

case "$1"  in
  start)
    echo "Starting demo..."
    MX5Theatre-1080p -qws &
  ;;
  *)
  ;;
esac
