Skip to content

Commit

Permalink
remove unnecessary modprobe
Browse files Browse the repository at this point in the history
  • Loading branch information
CW-B-W committed Jan 8, 2025
1 parent d11475e commit e659a5e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions wireguard-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,6 @@ function installWireGuard() {
yum update -y
amazon-linux-extras install epel -y
yum install -y wireguard-tools iptables qrencode
# Enable WireGuard kernel module
echo "Enabling WireGuard kernel module..."
modprobe wireguard
if ! lsmod | grep -q wireguard; then
echo "Failed to load WireGuard kernel module"
exit 1
fi
fi
# Make sure the directory exists (this does not seem the be the case on fedora)
Expand Down

0 comments on commit e659a5e

Please sign in to comment.