From 50b5dfdc0271c91e22d107793c457fae270e0044 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Fri, 22 Nov 2019 14:59:07 -0800 Subject: Initial commit --- sdio-hciattach.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sdio-hciattach.service (limited to 'sdio-hciattach.service') 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 + -- cgit v1.2.1