2020-01-08 20:18:23 +01:00
|
|
|
[Unit]
|
|
|
|
Description=bt-agent to accept bluetooth connections without pin
|
|
|
|
After=bluetooth.service
|
|
|
|
RestartSec=3
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
|
|
|
RestartSec=1
|
|
|
|
User=root
|
|
|
|
# make first adaptor discoverable
|
2020-01-16 21:09:14 +01:00
|
|
|
ExecStartPre=/bin/start_bt_discoverable {{bluetooth_mac_address_audio}} {{bluetooth_name}}
|
2020-01-08 20:18:23 +01:00
|
|
|
ExecStart=bt-agent -c NoInputNoOutput
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=bluetooth.target
|