From adedc8f4453290f5d8348c2078a2dead12f18d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Fri, 10 Jan 2025 00:47:54 +0800 Subject: [PATCH] Update btwifi.sh --- bin/btwifi.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/bin/btwifi.sh b/bin/btwifi.sh index 6c3bd7e..61cfa52 100644 --- a/bin/btwifi.sh +++ b/bin/btwifi.sh @@ -22,23 +22,20 @@ BLUETOOTH_DHCP_RANGE="192.168.44.10,192.168.44.50" # 启动蓝牙服务 systemctl start bluetooth -# 设置蓝牙设备名称 +# 设置蓝牙设备名称(使用 hciconfig 而不是 bluetoothctl) +hciconfig $BLUETOOTH_ADAPTER name $BLUETOOTH_NAP_NAME + +# 设置蓝牙设备可发现和可配对 bluetoothctl < /etc rfcomm.conf < /etc/rfcomm.conf <