summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/download.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/download.inc b/modules/download.inc
new file mode 100644
index 0000000..bbe4aae
--- /dev/null
+++ b/modules/download.inc
@@ -0,0 +1,10 @@
+#!/bin/ash
+
+download() {
+ curl --location --max-redirs 5 --max-time 7 --connect-timeout 2 "$@"
+}
+
+ownload_retry() {
+ download --retry 3 --retry-max-time 12 "$@"
+}
+