From 5fdc790475b30b356bd9be49f235a77d568b300f Mon Sep 17 00:00:00 2001 From: theo Date: Wed, 9 Oct 2024 10:56:54 +0200 Subject: [PATCH] Auto bluetooth auto reconnect service --- manifest | 1 + .../etc/systemd/system/bluetooth-auto-connect.service | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 rootfs/etc/systemd/system/bluetooth-auto-connect.service diff --git a/manifest b/manifest index 1a470e829..2a80c7f0a 100644 --- a/manifest +++ b/manifest @@ -249,6 +249,7 @@ export SERVICES="\ NetworkManager \ avahi-daemon \ bluetooth \ + bluetooth-auto-connect \ bluetooth-workaround \ fstrim.timer \ haveged \ diff --git a/rootfs/etc/systemd/system/bluetooth-auto-connect.service b/rootfs/etc/systemd/system/bluetooth-auto-connect.service new file mode 100644 index 000000000..4ff050899 --- /dev/null +++ b/rootfs/etc/systemd/system/bluetooth-auto-connect.service @@ -0,0 +1,11 @@ +[Unit] +Description=A service that periodicaly scan & connect for previously connected bluetooth devices +After=bluetooth.service + +[Service] +ExecStart=/usr/bin/bluetoothctl -t 3 scan on +Restart=Always +RestartSec=1 + +[Install] +WantedBy=multi-user.target \ No newline at end of file