summaryrefslogtreecommitdiff
path: root/sdio-hciattach.service
diff options
context:
space:
mode:
Diffstat (limited to 'sdio-hciattach.service')
-rw-r--r--sdio-hciattach.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/sdio-hciattach.service b/sdio-hciattach.service
new file mode 100644
index 0000000..7c1d5a7
--- /dev/null
+++ b/sdio-hciattach.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Start bluetooth on ttyS0
+After=systemd-modules-load.service
+
+[Service]
+Type=forking
+ExecStart=/bin/bash -c 'echo 0 > /sys/class/rfkill/rfkill0/state; sleep 1; echo 1 > /sys/class/rfkill/rfkill0/state; sleep 1; exec /usr/bin/hciattach /dev/ttyS0 bcm43xx 1500000 flow nosleep'
+
+[Install]
+WantedBy=multi-user.target
+