Commit 557948de authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: add axel sget_with_mirrors for simultaneous mirror download

parent 763d5946
...@@ -1520,6 +1520,12 @@ url_pget() ...@@ -1520,6 +1520,12 @@ url_pget()
done done
} }
# Download file from multiple mirrors simultaneously (axel supports multiple URLs)
sget_with_mirrors()
{
# axel downloads from all URLs simultaneously as mirrors
__axel --alternate "$@"
}
# use __wget for headers (aria2/axel don't support this natively) # use __wget for headers (aria2/axel don't support this natively)
url_get_response() url_get_response()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment