change bluetooth

This commit is contained in:
aiminick 2019-02-25 20:57:51 +08:00 committed by GitHub
parent 9fe166f307
commit 683545712a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 20 deletions

View File

@ -619,26 +619,7 @@ apt update; apt install shellinabox -y
### 开启蓝牙支持
首先,你的系统能够连接到互联网以安装蓝牙软件的支持
```shell
apt update; apt install bluez -y
```
然后编辑文件 */boot/rc-local*,在第二行加入以下内容,重启即可,如不重启,请执行这条命令将立即生效以开启蓝牙
```shell
/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -
```
下面是一个 **/boot/rc-local** 文件的完整例子:
```shell
#!/bin/bash
/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -
echo "rc-local bash echo test."
exit 0
```
所有系统默认已开启蓝牙支持,无需额外操作
----