distribution/packages/tools/rtk_hciattach/system.d/hciattach-realtek.service
adamg 311e884c1c rtk_hciattach: do not attempt to start systemd service if the
device node is not present as this is blocking bluetooth on
other devices
2023-11-08 18:29:06 +00:00

14 lines
355 B
Desktop File

[Unit]
Description=Attach /dev/ttyS1 to BlueZ stack
Before=bluetooth-agent.service
PartOf=bluetooth.service
ConditionPathExists=/dev/ttyS1
[Service]
Type=simple
ExecStartPre=/usr/sbin/rfkill unblock bluetooth
ExecStart=/usr/bin/rtk_hciattach -n /dev/ttyS1 rtk_h5 115200
ExecStopPost=/usr/sbin/rfkill block bluetooth
[Install]
WantedBy=bluetooth.service