feat(rfcomm): add service to systemd to auto-bind on startup

This commit is contained in:
George Rawlinson 2018-05-17 13:29:28 +12:00
parent 08a31b0a45
commit f43ed05f69

View file

@ -0,0 +1,13 @@
[Unit]
Description=rfcomm service
After=bluetooth.service
Requires=bluetooth.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/rfcomm bind 0 <device>
ExecStop=/usr/bin/rfcomm release 0
[Install]
WantedBy=multi-user.target