diff --git a/bin/btwifi.sh b/bin/btwifi.sh deleted file mode 100644 index b86945b..0000000 --- a/bin/btwifi.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash - -# 确保脚本以root用户运行 -if [ "$EUID" -ne 0 ]; then - echo "请以root用户运行或使用sudo" - exit 1 -fi - -# 启动蓝牙服务 -systemctl start bluetooth - -# 使用 bluetoothctl 设置蓝牙 -bluetoothctl < /etc/bluetooth/rfcomm.conf < /etc/iptables.ipv4.nat - -# 将iptables规则加载到rc.local以便在启动时应用 -cat >> /etc/rc.local <