change bluetooth
This commit is contained in:
parent
9fe166f307
commit
683545712a
21
README.md
21
README.md
|
|
@ -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
|
||||
```
|
||||
所有系统默认已开启蓝牙支持,无需额外操作
|
||||
|
||||
----
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue