2024-07-25 21:59:46 +08:00
|
|
|
declare pick
|
2024-09-23 01:23:05 +08:00
|
|
|
declare path_script=$1
|
2024-07-25 21:59:46 +08:00
|
|
|
echo "========Other========"
|
|
|
|
echo "1.开启BBR"
|
2024-07-27 15:12:30 +08:00
|
|
|
echo "2.更换系统语言"
|
2024-09-23 01:19:11 +08:00
|
|
|
echo "3.申请SSL证书"
|
2024-09-23 15:56:50 +08:00
|
|
|
echo "4.一键DD/重装脚本"
|
2024-07-25 21:59:46 +08:00
|
|
|
echo "输入其他任意返回主页"
|
|
|
|
echo "========Other========"
|
|
|
|
read -p "请输入:" pick
|
|
|
|
|
|
|
|
case "$pick" in
|
|
|
|
'1')
|
2024-07-27 15:12:30 +08:00
|
|
|
declare version=$(uname -r | awk -F "." '{print $1}')
|
|
|
|
if ! [[ $version -ge 5 ]];then
|
|
|
|
echo "系统内核版本过低"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
grep -q "net.core.default_qdisc=fq" "/etc/sysctl.conf" || echo 'net.core.default_qdisc=fq' | sudo tee -a "/etc/sysctl.conf"
|
|
|
|
grep -q "net.ipv4.tcp_congestion_control=bbr" "/etc/sysctl.conf" || echo 'net.ipv4.tcp_congestion_control=bbr' | sudo tee -a "/etc/sysctl.conf"
|
|
|
|
sudo sysctl -p || echo "bbr 开启失败"
|
|
|
|
sysctl net.ipv4.tcp_available_congestion_control | grep bbr && echo "bbr 开启成功"
|
|
|
|
;;
|
|
|
|
'2')
|
2024-09-23 01:19:11 +08:00
|
|
|
bash "${path_script}/Config/Other/Language.sh"
|
|
|
|
;;
|
|
|
|
'3')
|
|
|
|
bash "${path_script}/Config/Other/Acme.sh"
|
|
|
|
;;
|
2024-09-23 15:56:50 +08:00
|
|
|
'4')
|
|
|
|
bash "${path_script}/Config/Other/Reinstall.sh"
|
|
|
|
;;
|
2024-07-25 21:59:46 +08:00
|
|
|
esac
|