#! /bin/sh
### BEGIN INIT INFO
# Provides:          nasplashscreen
# Required-Start: $local_fs
# Required-Stop:
# Should-Start:
# Default-Start:     S
# Default-Stop:
# Short-Description: Show custom splashscreen
# Description:       Show custom splashscreen
### END INIT INFO


do_start () {

    #/usr/bin/fbi -T 1 -noverbose -a /etc/splash.png
    /usr/bin/omxplayer --aspect-mode stretch /etc/tc_intro_800x480.mp4 &
    exit 0
}

case "$1" in
  start|"")
    do_start
    ;;
  restart|reload|force-reload)
    echo "Error: argument '$1' not supported" >&2
    exit 3
    ;;
  stop)
    # No-op
    ;;
  status)
    exit 0
    ;;
  *)
    echo "Usage: asplashscreen [start|stop]" >&2
    exit 3
    ;;
esac

:

