X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=3ab2c02abba341055684a32cbdb09bc85d6bbb1c;hp=a4cc45319e200a07fefb8a8fbedb15010984b08f;hb=ab84b05724db9328b170d7daffc4df9f7c270ca2;hpb=ed9c62287526b703ba24732f803c5562ea1890b3 diff --git a/autoconfig.functions b/autoconfig.functions index a4cc453..3ab2c02 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1425,7 +1425,13 @@ get_remote_file() { --read-timeout=10 ${SOURCE} -O ${TARGET} && return 0 || return 1 } einfo "Trying to get ${WHITE}${TARGET}${NORMAL}" - counter=10 + + if checkbootparam 'getfile.retries' ; then + local counter="$(getbootparam 'getfile.retries' 2>>$DEBUG)" + else + local counter=10 + fi + while ! getconfig && [[ "$counter" != 0 ]] ; do echo -n "Sleeping for 1 second and trying to get config again... " counter=$(( counter-1 ))