Update t.sh

Former-commit-id: 0c7dbb1e9a3de10c1a6b2dafe94032e1949092fc
This commit is contained in:
fscarmen
2021-09-11 15:40:46 +08:00
committed by GitHub
parent 5483d946fc
commit ee544b44dd
+2 -1
View File
@@ -90,7 +90,8 @@ function dependence(){
yum -y install net-tools wireguard-tools
# 如 Linux 版本低于5.6并且是 kvm,则安装 wireguard 内核模块
if [[ $wg == 1 ]]; then curl -Lo /etc/yum.repos.d/wireguard.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo; yum -y install epel-release wireguard-dkms; fi
if [[ $wg == 1 ]]; then curl -Lo /etc/yum.repos.d/wireguard.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo
yum -y install epel-release wireguard-dkms; fi
# 升级所有包同时也升级软件和系统内核
yum -y update