OpenVoiceOS/buildroot-external/package/btspeaker/btspeaker.service

15 lines
342 B
SYSTEMD

[Unit]
Description=Bluetooth Auth Agent
After=bluetooth.service
Requires=bluetooth.service
[Service]
Type=simple
ExecStartPre=/usr/bin/bt-adapter -s Powered on
ExecStartPre=/usr/bin/bt-adapter -s Discoverable on
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput -p /etc/bluetooth/pin.conf
TimeoutStopSec=5
[Install]
WantedBy=multi-user.target