Skip to content

Commit

Permalink
# v1.0.15 支持 i686 系统(32位 i386分支)。
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyo authored Aug 5, 2017
1 parent 7ee4a20 commit 642cf90
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bbr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export PATH
#=================================================
# System Required: Debian/Ubuntu
# Description: TCP-BBR
# Version: 1.0.14
# Version: 1.0.15
# Author: Toyo
# Blog: https://doub.io/wlzy-16/
#=================================================
Expand Down Expand Up @@ -57,12 +57,10 @@ get_latest_version(){
deb_name=$(wget -qO- http://kernel.ubuntu.com/~kernel-ppa/mainline/v${latest_version}/ | grep "linux-image" | grep "generic" | awk -F'\">' '/amd64.deb/{print $2}' | cut -d'<' -f1 | head -1)
deb_kernel_url="http://kernel.ubuntu.com/~kernel-ppa/mainline/v${latest_version}/${deb_name}"
deb_kernel_name="linux-image-${latest_version}-amd64.deb"
elif [ ${bit} == "i386" ]; then
else
deb_name=$(wget -qO- http://kernel.ubuntu.com/~kernel-ppa/mainline/v${latest_version}/ | grep "linux-image" | grep "generic" | awk -F'\">' '/i386.deb/{print $2}' | cut -d'<' -f1 | head -1)
deb_kernel_url="http://kernel.ubuntu.com/~kernel-ppa/mainline/v${latest_version}/${deb_name}"
deb_kernel_name="linux-image-${latest_version}-i386.deb"
else
echo -e "${Error} 不支持 ${bit} !" && exit 1
fi
}
#检查内核是否满足
Expand Down

0 comments on commit 642cf90

Please sign in to comment.