Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
尝试处理
WARNING: timestamping does nothing in combination with -O. See the manual
for details.
No such file or directory
  • Loading branch information
ylx2016 authored Nov 14, 2023
1 parent 11f9fd3 commit e4ffbf8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
22 changes: 11 additions & 11 deletions tcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export PATH
#=================================================
# System Required: CentOS 7/8,Debian/ubuntu,oraclelinux
# Description: BBR+BBRplus+Lotserver
# Version: 100.0.2.2
# Version: 100.0.2.3
# Author: 千影,cx9208,YLX
# 更新内容及反馈: https://blog.ylx.me/archives/783.html
#=================================================
Expand All @@ -15,7 +15,7 @@ export PATH
# SKYBLUE='\033[0;36m'
# PLAIN='\033[0m'

sh_ver="100.0.2.2"
sh_ver="100.0.2.3"
github="raw.githubusercontent.com/ylx2016/Linux-NetSpeed/master"

imgurl=""
Expand Down Expand Up @@ -170,7 +170,7 @@ download_file() {
url="$1"
filename="$2"

wget -N "$url" -O "$filename"
wget "$url" -O "$filename"
status=$?

if [ $status -eq 0 ]; then
Expand Down Expand Up @@ -326,8 +326,8 @@ installbbrplus() {
headurl=$(check_cn $headurl)
imgurl=$(check_cn $imgurl)

wget -N -O linux-headers.deb $headurl
wget -N -O linux-image.deb $imgurl
wget -O linux-headers.deb $headurl
wget -O linux-image.deb $imgurl

dpkg -i linux-image.deb
dpkg -i linux-headers.deb
Expand Down Expand Up @@ -516,8 +516,8 @@ installxanmod() {
headurl=$(check_cn $headurl)
imgurl=$(check_cn $imgurl)

wget -N -O kernel-headers-c8.rpm $headurl
wget -N -O kernel-c8.rpm $imgurl
wget -O kernel-headers-c8.rpm $headurl
wget -O kernel-c8.rpm $imgurl
yum install -y kernel-c8.rpm
yum install -y kernel-headers-c8.rpm
fi
Expand Down Expand Up @@ -603,8 +603,8 @@ installbbrplusnew() {
headurl=$(check_cn $headurl)
imgurl=$(check_cn $imgurl)

wget -N -O kernel-c7.rpm $headurl
wget -N -O kernel-headers-c7.rpm $imgurl
wget -O kernel-c7.rpm $headurl
wget -O kernel-headers-c7.rpm $imgurl
yum install -y kernel-c7.rpm
yum install -y kernel-headers-c7.rpm
else
Expand All @@ -624,8 +624,8 @@ installbbrplusnew() {
headurl=$(check_cn $headurl)
imgurl=$(check_cn $imgurl)

wget -N -O kernel-c8.rpm $headurl
wget -N -O kernel-headers-c8.rpm $imgurl
wget -O kernel-c8.rpm $headurl
wget -O kernel-headers-c8.rpm $imgurl
yum install -y kernel-c8.rpm
yum install -y kernel-headers-c8.rpm
else
Expand Down
28 changes: 14 additions & 14 deletions tcpx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export PATH
#=================================================
# System Required: CentOS 7/8,Debian/ubuntu,oraclelinux
# Description: BBR+BBRplus+Lotserver
# Version: 100.0.2.2
# Version: 100.0.2.3
# Author: 千影,cx9208,YLX
# 更新内容及反馈: https://blog.ylx.me/archives/783.html
#=================================================
Expand All @@ -15,7 +15,7 @@ export PATH
# SKYBLUE='\033[0;36m'
# PLAIN='\033[0m'

sh_ver="100.0.2.2"
sh_ver="100.0.2.3"
github="raw.githubusercontent.com/ylx2016/Linux-NetSpeed/master"

imgurl=""
Expand Down Expand Up @@ -170,7 +170,7 @@ download_file() {
url="$1"
filename="$2"

wget -N "$url" -O "$filename"
wget "$url" -O "$filename"
status=$?

if [ $status -eq 0 ]; then
Expand Down Expand Up @@ -316,8 +316,8 @@ installbbrplus() {
headurl=$(check_cn $headurl)
imgurl=$(check_cn $imgurl)

wget -N -O linux-headers.deb $headurl
wget -N -O linux-image.deb $imgurl
wget -O linux-headers.deb $headurl
wget -O linux-image.deb $imgurl

dpkg -i linux-image.deb
dpkg -i linux-headers.deb
Expand Down Expand Up @@ -489,8 +489,8 @@ installxanmod() {
headurl=$(check_cn $headurl)
imgurl=$(check_cn $imgurl)

wget -N -O kernel-headers-c8.rpm $headurl
wget -N -O kernel-c8.rpm $imgurl
wget -O kernel-headers-c8.rpm $headurl
wget -O kernel-c8.rpm $imgurl
yum install -y kernel-c8.rpm
yum install -y kernel-headers-c8.rpm
fi
Expand Down Expand Up @@ -566,8 +566,8 @@ installbbrplusnew() {
headurl=$(check_cn $headurl)
imgurl=$(check_cn $imgurl)

wget -N -O kernel-c7.rpm $headurl
wget -N -O kernel-headers-c7.rpm $imgurl
wget -O kernel-c7.rpm $headurl
wget -O kernel-headers-c7.rpm $imgurl
yum install -y kernel-c7.rpm
yum install -y kernel-headers-c7.rpm
else
Expand All @@ -587,8 +587,8 @@ installbbrplusnew() {
headurl=$(check_cn $headurl)
imgurl=$(check_cn $imgurl)

wget -N -O kernel-c8.rpm $headurl
wget -N -O kernel-headers-c8.rpm $imgurl
wget -O kernel-c8.rpm $headurl
wget -O kernel-headers-c8.rpm $imgurl
yum install -y kernel-c8.rpm
yum install -y kernel-headers-c8.rpm
else
Expand Down Expand Up @@ -1942,7 +1942,7 @@ check_sys_official_bbr() {
#检查官方xanmod main内核并安装
check_sys_official_xanmod_main() {
check_version
wget -N -O check_x86-64_psabi.sh https://dl.xanmod.org/check_x86-64_psabi.sh
wget -O check_x86-64_psabi.sh https://dl.xanmod.org/check_x86-64_psabi.sh
chmod +x check_x86-64_psabi.sh
cpu_level=$(./check_x86-64_psabi.sh | awk -F 'v' '{print $2}')
echo -e "CPU supports \033[32m${cpu_level}\033[0m"
Expand Down Expand Up @@ -1976,7 +1976,7 @@ check_sys_official_xanmod_main() {
#检查官方xanmod lts内核并安装
check_sys_official_xanmod_lts() {
check_version
wget -N -O check_x86-64_psabi.sh https://dl.xanmod.org/check_x86-64_psabi.sh
wget -O check_x86-64_psabi.sh https://dl.xanmod.org/check_x86-64_psabi.sh
chmod +x check_x86-64_psabi.sh
cpu_level=$(./check_x86-64_psabi.sh | awk -F 'v' '{print $2}')
echo -e "CPU supports \033[32m${cpu_level}\033[0m"
Expand Down Expand Up @@ -2010,7 +2010,7 @@ check_sys_official_xanmod_lts() {
#检查官方xanmod lts内核并安装
check_sys_official_xanmod_edge() {
check_version
wget -N -O check_x86-64_psabi.sh https://dl.xanmod.org/check_x86-64_psabi.sh
wget -O check_x86-64_psabi.sh https://dl.xanmod.org/check_x86-64_psabi.sh
chmod +x check_x86-64_psabi.sh
cpu_level=$(./check_x86-64_psabi.sh | awk -F 'v' '{print $2}')
echo -e "CPU supports \033[32m${cpu_level}\033[0m"
Expand Down

0 comments on commit e4ffbf8

Please sign in to comment.