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