Update comments

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun 2018-12-15 10:18:19 +09:00
parent 5924fa2eb8
commit 354ebe77db
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

14
bbr.sh
View File

@ -321,8 +321,18 @@ install_bbr() {
rm -rf ${rpm_kernel_devel_name} rm -rf ${rpm_kernel_devel_name}
wget -c -t3 -T60 -O ${rpm_kernel_devel_name} ${rpm_kernel_url_2}${rpm_kernel_devel_name} wget -c -t3 -T60 -O ${rpm_kernel_devel_name} ${rpm_kernel_url_2}${rpm_kernel_devel_name}
fi fi
[ -f ${rpm_kernel_name} ] && rpm -ivh ${rpm_kernel_name} || echo -e "${red}Error:${plain} Download ${rpm_kernel_name} failed, please check it."; exit 1 if [ -f "${rpm_kernel_name}" ]; then
[ -f ${rpm_kernel_devel_name} ] && rpm -ivh ${rpm_kernel_devel_name} || echo -e "${red}Error:${plain} Download ${rpm_kernel_devel_name} failed, please check it."; exit 1 rpm -ivh ${rpm_kernel_name}
else
echo -e "${red}Error:${plain} Download ${rpm_kernel_name} failed, please check it."
exit 1
fi
if [ -f "${rpm_kernel_devel_name}" ]; then
rpm -ivh ${rpm_kernel_devel_name}
else
echo -e "${red}Error:${plain} Download ${rpm_kernel_devel_name} failed, please check it."
exit 1
fi
rm -f ${rpm_kernel_name} ${rpm_kernel_devel_name} rm -f ${rpm_kernel_name} ${rpm_kernel_devel_name}
elif centosversion 7; then elif centosversion 7; then
yum -y install kernel-ml kernel-ml-devel yum -y install kernel-ml kernel-ml-devel