19 lines
380 B
SYSTEMD
19 lines
380 B
SYSTEMD
|
[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
|
||
|
ExecStartPre=/bin/start_bt_discoverable {{bluetooth_mac_address}} {{bluetooth_name}}
|
||
|
ExecStart=bt-agent -c NoInputNoOutput
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=bluetooth.target
|