mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-24 05:56:02 +03:00
Remove unneeded packages on Arch Linux (#225)
This commit is contained in:
parent
7be2cf9fb4
commit
b7855925e6
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user