#!/bin/bash
### BEGIN INIT INFO
# Provides:          boblight-dispmanx
# Required-Start:    $remote_fs dbus boblight
# Required-Stop:     $remote_fs dbus boblight
# Should-Start:      $syslog
# Should-Stop:       $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Boblight dispmanx
# Description:       Boblight dispmanx Ambilight
### END INIT INFO

# Some things that run always
/usr/bin/boblight-dispmanx -o interpolation=1 -o speed=90 -o threshold=35 -o autospeed=0 -o saturation=1 -o value=1 -p 100 -i 0.1 -f /dev/null

# Carry out specific functions when asked to by the system
case "$1" in
  start)
    echo "Starting script boblight-dispmanx"
    ;; 
  stop)
    echo "Stopping script boblight-dispmanx"
    ;;
  *)  
    echo "Usage: /etc/init.d/boblight-dispmanx {start|stop}"
    exit 1
    ;;
esac

exit 0
