mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-09 04:02:03 +00:00
checking for LTS kernel (ARCH)
This commit is contained in:
parent
315646ae12
commit
c030c1f67a
1 changed files with 6 additions and 1 deletions
|
@ -143,7 +143,12 @@ function installWireGuard() {
|
|||
yum -y install epel-release kernel kernel-devel kernel-headers
|
||||
yum -y install wireguard-dkms wireguard-tools iptables qrencode
|
||||
elif [[ ${OS} == 'arch' ]]; then
|
||||
pacman -S --noconfirm linux-headers
|
||||
ARCH_LTS_KERNEL=$(pacman -Qs linux-lts)
|
||||
if [[ -n ${ARCH_LTS_KERNEL} ]]; then
|
||||
pacman -S --noconfirm linux-lts-headers
|
||||
else
|
||||
pacman -S --noconfirm linux-headers
|
||||
fi
|
||||
pacman -S --noconfirm wireguard-tools iptables qrencode
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue