Skip to content

Commit

Permalink
update kernel, little optimize (Chikage0o0#10)
Browse files Browse the repository at this point in the history
* update debian kernel

* update centos kernel

* rebuild debian kernel

* recover path
  • Loading branch information
cx9208 authored and chiakge committed Jan 4, 2019
1 parent fff649f commit a7a0c89
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
Binary file not shown.
Binary file added bbrplus/centos/7/kernel-headers-4.14.91.rpm
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 11 additions & 8 deletions tcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export PATH
#=================================================
# System Required: CentOS 6/7,Debian 8/9,Ubuntu 16+
# Description: BBR+BBR魔改版+BBRplus+Lotserver
# Version: 1.2.0
# Version: 1.2.1
# Author: 千影,cx9208
# Blog: https://www.94ish.me/
#=================================================

sh_ver="1.2.0"
sh_ver="1.2.1"
github="raw.githubusercontent.com/chiakge/Linux-NetSpeed/master"

Green_font_prefix="\033[32m" && Red_font_prefix="\033[31m" && Green_background_prefix="\033[42;37m" && Red_background_prefix="\033[41;37m" && Font_color_suffix="\033[0m"
Expand Down Expand Up @@ -53,14 +53,16 @@ installbbr(){

#安装BBRplus内核
installbbrplus(){
kernel_version="4.14.90"
kernel_version="4.14.91"
if [[ "${release}" == "centos" ]]; then
wget https://${github}/bbrplus/${release}/${version}/kernel-4.14.90.rpm
yum install -y kernel-4.14.90.rpm
rm -f kernel-4.14.90.rpm
wget -N --no-check-certificate https://${github}/bbrplus/${release}/${version}/kernel-${kernel_version}.rpm
yum install -y kernel-${kernel_version}.rpm
rm -f kernel-${kernel_version}.rpm
elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
mkdir bbrplus && cd bbrplus
wget -N --no-check-certificate http://${github}/bbrplus/debian-ubuntu/${bit}/linux-headers-${kernel_version}.deb
wget -N --no-check-certificate http://${github}/bbrplus/debian-ubuntu/${bit}/linux-image-${kernel_version}.deb
dpkg -i linux-headers-${kernel_version}.deb
dpkg -i linux-image-${kernel_version}.deb
cd .. && rm -rf bbrplus
fi
Expand Down Expand Up @@ -428,7 +430,7 @@ detele_kernel(){
rpm -e ${rpm_del}
echo -e "卸载 ${rpm_del} 内核卸载完成,继续..."
done
echo -e "内核卸载完毕,继续..."
echo --nodeps -e "内核卸载完毕,继续..."
else
echo -e " 检测到 内核 数量不正确,请检查 !" && exit 1
fi
Expand Down Expand Up @@ -607,7 +609,8 @@ check_sys_Lotsever(){

check_status(){
kernel_version=`uname -r | awk -F "-" '{print $1}'`
if [[ ${kernel_version} = "4.14.90" ]]; then
kernel_version_full=`uname -r`
if [[ ${kernel_version_full} = "4.14.91-bbrplus" ]]; then
kernel_status="BBRplus"
elif [[ ${kernel_version} = "3.10.0" || ${kernel_version} = "3.16.0" || ${kernel_version} = "3.2.0" || ${kernel_version} = "4.4.0" || ${kernel_version} = "3.13.0" || ${kernel_version} = "2.6.32" ]]; then
kernel_status="Lotserver"
Expand Down

0 comments on commit a7a0c89

Please sign in to comment.