diff --git a/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.41/bluetooth.service-add-customizations.patch b/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.41/bluetooth.service-add-customizations.patch new file mode 100644 index 000000000..ca23ec021 --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.41/bluetooth.service-add-customizations.patch @@ -0,0 +1,37 @@ +From: Gabriel Valcazar +Date: Thu, 7 Feb 2019 13:15:43 +0100 +Subject: [PATCH] bluetooth.service: add Digi customizations + +These changes include: +* Adding the bluetooth-init service as a dependency +* Changing the path condition so the service only starts on bluetooth-capable +boards +* Changing the service's target so it starts on boot + +Signed-off-by: Gabriel Valcazar +--- + src/bluetooth.service.in | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in +index f799f65..ced1055 100644 +--- a/src/bluetooth.service.in ++++ b/src/bluetooth.service.in +@@ -1,7 +1,9 @@ + [Unit] + Description=Bluetooth service + Documentation=man:bluetoothd(8) +-ConditionPathIsDirectory=/sys/class/bluetooth ++ConditionPathIsDirectory=/proc/device-tree/bluetooth ++Requires=bluetooth-init.service ++After=bluetooth-init.service + + [Service] + Type=dbus +@@ -16,5 +18,5 @@ ProtectHome=true + ProtectSystem=full + + [Install] +-WantedBy=bluetooth.target ++WantedBy=multi-user.target + Alias=dbus-org.bluez.service diff --git a/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.50/bluetooth.service-add-customizations.patch b/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.50/bluetooth.service-add-customizations.patch new file mode 100644 index 000000000..ca23ec021 --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.50/bluetooth.service-add-customizations.patch @@ -0,0 +1,37 @@ +From: Gabriel Valcazar +Date: Thu, 7 Feb 2019 13:15:43 +0100 +Subject: [PATCH] bluetooth.service: add Digi customizations + +These changes include: +* Adding the bluetooth-init service as a dependency +* Changing the path condition so the service only starts on bluetooth-capable +boards +* Changing the service's target so it starts on boot + +Signed-off-by: Gabriel Valcazar +--- + src/bluetooth.service.in | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in +index f799f65..ced1055 100644 +--- a/src/bluetooth.service.in ++++ b/src/bluetooth.service.in +@@ -1,7 +1,9 @@ + [Unit] + Description=Bluetooth service + Documentation=man:bluetoothd(8) +-ConditionPathIsDirectory=/sys/class/bluetooth ++ConditionPathIsDirectory=/proc/device-tree/bluetooth ++Requires=bluetooth-init.service ++After=bluetooth-init.service + + [Service] + Type=dbus +@@ -16,5 +18,5 @@ ProtectHome=true + ProtectSystem=full + + [Install] +-WantedBy=bluetooth.target ++WantedBy=multi-user.target + Alias=dbus-org.bluez.service diff --git a/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.41.bbappend b/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.41.bbappend index e63c0d9c7..222aa3c16 100644 --- a/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.41.bbappend +++ b/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.41.bbappend @@ -5,6 +5,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${BP}:" SRC_URI += " \ file://bluetooth-init \ file://bluetooth-init.service \ + file://bluetooth.service-add-customizations.patch \ file://main.conf \ file://0001-hcitool-do-not-show-unsupported-refresh-option.patch \ file://0002-hcitool-increase-the-shown-connection-limit-to-20.patch \ diff --git a/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.50.bbappend b/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.50.bbappend index 0a5a9179f..a3a18146a 100644 --- a/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.50.bbappend +++ b/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.50.bbappend @@ -5,6 +5,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${BP}:" SRC_URI += " \ file://bluetooth-init \ file://bluetooth-init.service \ + file://bluetooth.service-add-customizations.patch \ file://main.conf \ file://0001-hcitool-do-not-show-unsupported-refresh-option.patch \ file://0002-hcitool-increase-the-shown-connection-limit-to-20.patch \