From c709f7de5989e99efeb853da54828ce773490b27 Mon Sep 17 00:00:00 2001 From: Raquel Medina Date: Tue, 7 Jul 2020 23:52:55 +0200 Subject: 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 Change-Id: Id4d5de549e73fe8f744681b33debd6043e1bc9ba Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24952 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Scott Murray --- .../recipes-connectivity/bluez5/bluez5/bluetooth.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.2.3-korg