From c3b5dcf1269902f2c8db2a3bb6116bd977300349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Fri, 28 Feb 2020 18:56:35 +0100 Subject: [PATCH] Update Wireguard - set to master branch of a WG for older kernel. (#1814) From 5.6.y WG is part of the mainline kernel --- lib/compilation-prepare.sh | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/lib/compilation-prepare.sh b/lib/compilation-prepare.sh index 406110f5b3..e1bb84368d 100644 --- a/lib/compilation-prepare.sh +++ b/lib/compilation-prepare.sh @@ -99,20 +99,14 @@ compilation_prepare() - # WireGuard - fast, modern, secure VPN tunnel - if linux-version compare $version ge 3.14 && [ "${WIREGUARD}" == yes ]; then + # WireGuard VPN for Linux 3.10 - 5.5 + if linux-version compare $version ge 3.10 && linux-version compare $version le 5.5 && [ "${WIREGUARD}" == yes ]; then # attach to specifics tag or branch - #local wirever="branch:master" - local wirever="tag:0.0.20191219" + local wirever="branch:master" - display_alert "Adding" "WireGuard ${wirever} " "info" - - fetch_from_repo "https://git.zx2c4.com/wireguard-monolithic-historical" "wireguard" "${wirever}" "yes" - - #if linux-version compare $version gt 5.6; then - # fetch_from_repo "https://git.zx2c4.com/wireguard-linux" "wireguard" "stable" "yes" - #fi + display_alert "Adding" "WireGuard VPN for Linux 3.10 - 5.5 ${wirever} " "info" + fetch_from_repo "https://git.zx2c4.com/wireguard-linux-compat" "wireguard" "${wirever}" "yes" cd ${SRC}/cache/sources/${LINUXSOURCEDIR} rm -rf ${SRC}/cache/sources/${LINUXSOURCEDIR}/net/wireguard