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 <