[addons/boblightd] - if boblight-aml was found and /dev/amvideocap0 exists

- start boblight-aml with the daemon - also try to use the settings from
  boblight addon if installed
This commit is contained in:
Memphiz 2015-01-15 11:31:36 +01:00 committed by Memphis
parent 7e6d692152
commit 759a4bb186

View File

@ -35,4 +35,10 @@ if [ -x $ADDON_DIR/bin/boblight-X11 -a -e $ADDON_HOME/boblight.X11 ] ; then
boblight-X11 -f >/dev/null 2>&1
fi
if [ -x $ADDON_DIR/bin/boblight-aml -a -e /dev/amvideocap0 ] ; then
#generates cmdline from boblight addon settings
CMDLINE=`boblight-aml -g`
boblight-aml $CMDLINE >/dev/null 2>&1 &
fi
exec boblightd -c $ADDON_HOME/boblight.conf > $ADDON_LOG_FILE 2>&1