This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # 2026 Optimized BBR Enabler | |
| # 1. 权限检查 | |
| [[ $EUID -ne 0 ]] && echo "❌ Error: Please run as root (sudo)" && exit 1 | |
| echo "🚀 Optimizing network with BBR..." | |
| # 2. 清理旧配置并写入新规则 (确保不重复添加) | |
| sed -i '/net.core.default_qdisc/d' /etc/sysctl.conf |