aboutsummaryrefslogtreecommitdiff
path: root/scripts/fetch-latest-wireguard.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-31 02:05:05 +0200
committerNathan Chancellor <natechancellor@gmail.com>2018-05-31 10:28:41 -0700
commit250f773c73e383c0222cc2cfa5ea16ac31b1a575 (patch)
tree1a1554d4155525258bb59576391f5093bfd41e4a /scripts/fetch-latest-wireguard.sh
parent78cd7c614eabe4b7b1aa6c85553ec3dc276d32fd (diff)
Revert "HACK: scripts: wireguard: Force download from master"HEADo8.1
This reverts commit 98234eea79f47b3503418946526f1b3a33c178d8. Change-Id: I82c45ea65805180545781b77e97432643d222481 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'scripts/fetch-latest-wireguard.sh')
-rwxr-xr-xscripts/fetch-latest-wireguard.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fetch-latest-wireguard.sh b/scripts/fetch-latest-wireguard.sh
index 3fd13273df1a..dcc25dec71fb 100755
--- a/scripts/fetch-latest-wireguard.sh
+++ b/scripts/fetch-latest-wireguard.sh
@@ -13,6 +13,6 @@ fi
rm -rf net/wireguard
mkdir -p net/wireguard
-curl -A "$USER_AGENT" -LsS "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-master.tar.xz" | tar -C "net/wireguard" -xJf - --strip-components=2 "WireGuard-master/src"
+curl -A "$USER_AGENT" -LsS "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${BASH_REMATCH[1]}.tar.xz" | tar -C "net/wireguard" -xJf - --strip-components=2 "WireGuard-${BASH_REMATCH[1]}/src"
sed -i 's/tristate/bool/;s/default m/default y/;' net/wireguard/Kconfig
touch net/wireguard/.check