From 8b98532883b9d796077a88264c0dc8eba82a4780 Mon Sep 17 00:00:00 2001 From: Navratan Gupta Date: Thu, 20 Aug 2020 23:10:18 +0530 Subject: [PATCH] Minor Fix: #111 kmod-wireguard package included for standard kernels in CentOS 8 --- wireguard-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index d450d99..d114d86 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -140,8 +140,8 @@ function installWireGuard() { dnf install -y wireguard-tools iptables qrencode elif [[ ${OS} == 'centos' ]]; 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 kernel kernel-devel kernel-headers - yum -y install wireguard-dkms wireguard-tools iptables qrencode + yum -y install epel-release kernel kernel-devel kernel-headers elrepo-release + yum -y install wireguard-dkms wireguard-tools iptables qrencode kmod-wireguard elif [[ ${OS} == 'arch' ]]; then pacman -S --noconfirm linux-headers pacman -S --noconfirm wireguard-tools iptables qrencode @@ -354,7 +354,7 @@ function uninstallWg() { fi dnf autoremove -y elif [[ ${OS} == 'centos' ]]; then - yum -y remove wireguard-dkms wireguard-tools qrencode + yum -y remove wireguard-dkms wireguard-tools qrencode kmod-wireguard rm -f "/etc/yum.repos.d/wireguard.repo" yum -y autoremove elif [[ ${OS} == 'arch' ]]; then