diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-12-29 22:42:06 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-12-29 22:42:06 +0100 |
commit | c3fb88503cabc2234db2c1dfda41f0288c9f4ba8 (patch) | |
tree | d59060fbea05aa7c2074e2fb5f8bbfe96a225265 /fetch.sh | |
parent | Revert "Skip update if no internet" (diff) | |
download | android_kernel_wireguard-c3fb88503cabc2234db2c1dfda41f0288c9f4ba8.tar.xz android_kernel_wireguard-c3fb88503cabc2234db2c1dfda41f0288c9f4ba8.zip |
Diffstat (limited to 'fetch.sh')
-rw-r--r-- | fetch.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ #!/bin/bash set -e -USER_AGENT="WireGuard-AndroidROMBuild/0.2 ($(uname -a))" +USER_AGENT="WireGuard-AndroidROMBuild/0.3 ($(uname -a))" exec 9>.wireguard-fetch-lock flock -n 9 || exit 0 @@ -8,7 +8,7 @@ flock -n 9 || exit 0 [[ $(( $(date +%s) - $(stat -c %Y "net/wireguard/.check" 2>/dev/null || echo 0) )) -gt 86400 ]] || exit 0 while read -r distro package version _; do - if [[ $distro == upstream && $package == kmodtools ]]; then + if [[ $distro == upstream && $package == linuxcompat ]]; then VERSION="$version" break fi @@ -23,6 +23,6 @@ fi rm -rf net/wireguard mkdir -p net/wireguard -curl -A "$USER_AGENT" -LsS --connect-timeout 30 "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$VERSION.tar.xz" | tar -C "net/wireguard" -xJf - --strip-components=2 "WireGuard-$VERSION/src" +curl -A "$USER_AGENT" -LsS --connect-timeout 30 "https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-$VERSION.tar.xz" | tar -C "net/wireguard" -xJf - --strip-components=2 "wireguard-linux-compat-$VERSION/src" sed -i 's/tristate/bool/;s/default m/default y/;' net/wireguard/Kconfig touch net/wireguard/.check |