summaryrefslogtreecommitdiff
path: root/sdio-hciattach.service
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-11-22 14:59:07 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-11-22 14:59:07 -0800
commit50b5dfdc0271c91e22d107793c457fae270e0044 (patch)
treee42f0045b369339501572814ce3dbd81da7127aa /sdio-hciattach.service
downloadpinebookpro-post-install-50b5dfdc0271c91e22d107793c457fae270e0044.tar.xz
Initial commit
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
+