File: 0001-systemd-activation.patch

package info (click to toggle)
qcom-phone-utils 0.4.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 212 kB
  • sloc: sh: 441; ansic: 123; makefile: 14
file content (23 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Arnaud Ferraris <arnaud.ferraris@collabora.com>
Date: Wed, 5 Feb 2025 12:55:22 +0100
Subject: bootmac-bluetooth.rules: switch to systemd unit activation

Running `bootmac` directly as part of the `udev` rule proved to cause
lots of trouble on Debian. Instead, we'd rather activate the
corresponding systemd service which is more likely to succeed.

Forwarded: not-needed
---
 bootmac-bluetooth.rules | 2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/bootmac-bluetooth.rules b/bootmac-bluetooth.rules
index f106d87..746ae86 100644
--- a/bootmac-bluetooth.rules
+++ b/bootmac-bluetooth.rules
@@ -4,4 +4,4 @@
 # SPDX-License-Identifier: GPL-3.0-or-later
 #
 
-ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci0", RUN+="/usr/bin/bootmac --bluetooth"
+ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="bootmac-bluetooth.service"