2022-10-18 12:47:32 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Attach /dev/ttyS1 to BlueZ stack
|
2022-10-28 22:33:07 +00:00
|
|
|
Before=bluetooth-agent.service
|
|
|
|
PartOf=bluetooth.service
|
2023-11-08 18:29:06 +00:00
|
|
|
ConditionPathExists=/dev/ttyS1
|
2022-10-18 12:47:32 +00:00
|
|
|
|
|
|
|
[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
|