diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-23 17:37:56 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-23 17:37:56 +0200 |
commit | f63509f99b4052d999be3069abb04d5b63ad55bd (patch) | |
tree | ea08c0619db0bc69fd30105bda9509c6f4b7f32b /fetch.sh | |
parent | Skip update if no internet (diff) | |
download | android_kernel_wireguard-f63509f99b4052d999be3069abb04d5b63ad55bd.tar.xz android_kernel_wireguard-f63509f99b4052d999be3069abb04d5b63ad55bd.zip |
Revert "Skip update if no internet"
This reverts commit 73fbea12315008b6adb4640b9bfde4b360a7b35b.
Diffstat (limited to 'fetch.sh')
-rw-r--r-- | fetch.sh | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -6,8 +6,6 @@ exec 9>.wireguard-fetch-lock flock -n 9 || exit 0 [[ $(( $(date +%s) - $(stat -c %Y "net/wireguard/.check" 2>/dev/null || echo 0) )) -gt 86400 ]] || exit 0 -[[ $(( $(date +%s) - $(stat -c %Y "net/wireguard/.noconnectivity" 2>/dev/null || echo 0) )) -gt 5 ]] || exit 0 -ping -w 2 -4 -c 1 build.wireguard.com >/dev/null 2>&1 || { touch "net/wireguard/.noconnectivity"; echo "No internet detected, skipping WireGuard update." >&2; exit 0; } while read -r distro package version _; do if [[ $distro == upstream && $package == kmodtools ]]; then |