From: Raquel Medina <raquel.medina@konsulko.com>
Date: Tue, 7 Jul 2020 21:52:55 +0000 (+0200)
Subject: facilitate start up without bluetooth controller
X-Git-Tag: 9.99.2~28
X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=c709f7de5989e99efeb853da54828ce773490b27;p=AGL%2Fmeta-agl.git

facilitate start up without bluetooth controller

Add prefix '-' in the bluetooth service ExecStartPre
directive, to allow for errors: hciconfig will
return an error if there's no controller in the
system.

Bug-AGL: SPEC-3301
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Change-Id: Id4d5de549e73fe8f744681b33debd6043e1bc9ba
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24952
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Scott Murray <scott.murray@konsulko.com>
---

diff --git a/meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service b/meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service
index e389e1aa9..8ae83bd48 100644
--- a/meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service
+++ b/meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service
@@ -6,7 +6,7 @@ ConditionPathIsDirectory=/sys/class/bluetooth
 [Service]
 Type=dbus
 BusName=org.bluez
-ExecStartPre=/usr/bin/hciconfig hci0 aclmtu 930:10
+ExecStartPre=-/usr/bin/hciconfig hci0 aclmtu 930:10
 ExecStart=/usr/libexec/bluetooth/bluetoothd
 NotifyAccess=main
 #WatchdogSec=10