1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-11-21 20:25:14 +00:00

Remove unneeded packages on Arch Linux (#225)

This commit is contained in:
enolp 2021-04-27 20:40:13 +00:00 committed by GitHub
parent 7be2cf9fb4
commit b7855925e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,14 +148,7 @@ function installWireGuard() {
fi fi
yum -y install kmod-wireguard wireguard-tools iptables qrencode yum -y install kmod-wireguard wireguard-tools iptables qrencode
elif [[ ${OS} == 'arch' ]]; then elif [[ ${OS} == 'arch' ]]; then
# Check if current running kernel is LTS pacman -S --needed --noconfirm wireguard-tools qrencode
ARCH_KERNEL_RELEASE=$(uname -r)
if [[ ${ARCH_KERNEL_RELEASE} == *lts* ]]; then
pacman -S --needed --noconfirm linux-lts-headers
else
pacman -S --needed --noconfirm linux-headers
fi
pacman -S --needed --noconfirm wireguard-tools iptables qrencode
fi fi
# Make sure the directory exists (this does not seem the be the case on fedora) # Make sure the directory exists (this does not seem the be the case on fedora)