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"
|