mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 22:09:35 +08:00
Update comments
This commit is contained in:
parent
9b857494a7
commit
45e9171849
10
bbr.sh
10
bbr.sh
@ -265,10 +265,12 @@ install_kernel() {
|
|||||||
case "$(_os)" in
|
case "$(_os)" in
|
||||||
centos)
|
centos)
|
||||||
if [ -n "$(_os_ver)" ]; then
|
if [ -n "$(_os_ver)" ]; then
|
||||||
_error_detect "rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org"
|
if [ ! -f "/etc/yum.repos.d/elrepo.repo" ]; then
|
||||||
[ "$(_os_ver)" -eq 6 ] && _error_detect "rpm -Uvh https://www.elrepo.org/elrepo-release-6-10.el6.elrepo.noarch.rpm"
|
_error_detect "rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org"
|
||||||
[ "$(_os_ver)" -eq 7 ] && _error_detect "rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-5.el7.elrepo.noarch.rpm"
|
[ "$(_os_ver)" -eq 6 ] && _error_detect "rpm -Uvh https://www.elrepo.org/elrepo-release-6-10.el6.elrepo.noarch.rpm"
|
||||||
[ "$(_os_ver)" -eq 8 ] && _error_detect "rpm -Uvh https://www.elrepo.org/elrepo-release-8.2-1.el8.elrepo.noarch.rpm"
|
[ "$(_os_ver)" -eq 7 ] && _error_detect "rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-5.el7.elrepo.noarch.rpm"
|
||||||
|
[ "$(_os_ver)" -eq 8 ] && _error_detect "rpm -Uvh https://www.elrepo.org/elrepo-release-8.2-1.el8.elrepo.noarch.rpm"
|
||||||
|
fi
|
||||||
[ ! -f "/etc/yum.repos.d/elrepo.repo" ] && _error "Install elrepo failed, please check it and retry."
|
[ ! -f "/etc/yum.repos.d/elrepo.repo" ] && _error "Install elrepo failed, please check it and retry."
|
||||||
if ! _exists "yum-config-manager"; then
|
if ! _exists "yum-config-manager"; then
|
||||||
_error_detect "yum install -y yum-utils"
|
_error_detect "yum install -y yum-utils"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user