diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-06-19 16:10:01 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-06-19 16:10:16 +0200 |
commit | 73ad3670c8f882bf99d271f23ae3c1be4325462e (patch) | |
tree | a62b3e4e88bc0d95c18678cf33c6a561723b7ed9 /package/brcm-bluetooth/files/hci | |
parent | 78eeeacd01094b4ba7e46b728fe1af4b2015b82e (diff) |
bluez: update and fix rpi3 support, add required firmware file.
Diffstat (limited to 'package/brcm-bluetooth/files/hci')
-rw-r--r-- | package/brcm-bluetooth/files/hci | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/brcm-bluetooth/files/hci b/package/brcm-bluetooth/files/hci new file mode 100644 index 000000000..8b7d231c3 --- /dev/null +++ b/package/brcm-bluetooth/files/hci @@ -0,0 +1,32 @@ +#!/bin/sh +#PKG brcm-bluetooth +#INIT 10 + +case $1 in +autostop) ;; +autostart) + exec sh $0 start + ;; +start) + target=$(cat /etc/.adktarget) + case $target in + raspberry-pi3) + hciattach /dev/ttyAMA0 bcm43xx 921600 noflow - + ;; + *) + echo "No supported target found" + ;; + esac + ;; +stop) + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? |