diff --git a/system/etc/systemd/system/rfcomm.service b/system/etc/systemd/system/rfcomm.service new file mode 100644 index 0000000..6e316a5 --- /dev/null +++ b/system/etc/systemd/system/rfcomm.service @@ -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 +ExecStop=/usr/bin/rfcomm release 0 + +[Install] +WantedBy=multi-user.target