diff --git a/root/patch b/root/patch index ccf7a99..c0e93da 100644 --- a/root/patch +++ b/root/patch @@ -1,14 +1,18 @@ --- 9990-mount-http.sh 2019-06-14 09:55:07.000000000 +0000 -+++ 9990-mount-http.sh.new 2019-11-15 08:38:03.225447344 +0000 -@@ -41,7 +41,10 @@ ++++ 9990-mount-http.sh.new 2025-03-04 16:22:09.000000000 +0000 +@@ -41,7 +41,14 @@ *) log_begin_msg "Trying wget ${url} -O ${dest}/$(basename ${url})" - wget "${url}" -O "${dest}/$(basename ${url})" + /bin/curl -L "${url}" -o "${dest}/$(basename ${url})" -+ if [ ! -z "$(/bin/curl -sI "${url}".part2 | grep "200 OK\|302 Found" || :)" ]; then -+ /bin/curl -L "${url}".part2 -o ->> "${dest}/$(basename ${url})" ++ for n in $(seq 2 10); do ++ if [ ! -z "$(/bin/curl -sI "${url}.part${partNum}" | grep "200 OK\|302 Found" || :)" ]; then ++ /bin/curl -L "${url}.part${partNum}" -o ->> "${dest}/$(basename ${url})"; ++ else ++ break + fi ++ done ;; esac else