mirror of
https://abf.rosa.ru/djam/bluez.git
synced 2025-02-22 22:52:55 +00:00
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 488fd81a0f9cb193a733ac03fba0a80c145868c9 Mon Sep 17 00:00:00 2001
|
|
From: Martin Pitt <martin.pitt@ubuntu.com>
|
|
Date: Tue, 20 Oct 2015 12:24:45 +0200
|
|
Subject: systemd: Check if bluetooth is supported in the kernel
|
|
|
|
When running a kernel without bluetooth support, bluetooth.service fails to
|
|
start with
|
|
|
|
bluetoothd[1640]: Failed to access management interface
|
|
bluetoothd[1640]: Adapter handling initialization failed
|
|
systemd[1]: bluetooth.service: Main process exited, code=exited, status=1/FAILURE
|
|
systemd[1]: Failed to start Bluetooth service.
|
|
|
|
This causes an unnecessary "degraded" state and more importantly breaks package
|
|
installation when the bluez package auto-starts the daemon.
|
|
|
|
Add a condition to only start the service if /sys/class/bluetooth exists.
|
|
|
|
https://launchpad.net/bugs/1506774
|
|
---
|
|
src/bluetooth.service.in | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in
|
|
index 35e9457..83e4732 100644
|
|
--- a/src/bluetooth.service.in
|
|
+++ b/src/bluetooth.service.in
|
|
@@ -1,6 +1,7 @@
|
|
[Unit]
|
|
Description=Bluetooth service
|
|
Documentation=man:bluetoothd(8)
|
|
+ConditionPathIsDirectory=/sys/class/bluetooth
|
|
|
|
[Service]
|
|
Type=dbus
|
|
--
|
|
cgit v0.11.2
|
|
|