Patch for extif watchdog support. Thanks b.sander. Closes #2363 #2814 and #3141
[openwrt.git] / scripts / download.pl
index 161ae7f..e885ff2 100755 (executable)
@@ -63,7 +63,7 @@ sub download
        $options or $options = "";
        
        $mirror =~ s/\/$//;
-       open WGET, "wget -t1 --timeout=20 $options -O- \"$mirror/$filename\" |" or die "Cannot launch wget.\n";
+       open WGET, "wget -t5 --timeout=20 $options -O- \"$mirror/$filename\" |" or die "Cannot launch wget.\n";
        open MD5SUM, "| $md5cmd > \"$target/$filename.md5sum\"" or die "Cannot launch md5sum.\n";
        open OUTPUT, "> $target/$filename.dl" or die "Cannot create file $target/$filename.dl: $!\n";
        my $buffer;
@@ -86,7 +86,7 @@ sub download
        $sum = $1;
        
        if (($md5sum =~ /\w{32}/) and ($sum ne $md5sum)) {
-               print STDERR "MD5 sum of the downloaded file does not match - deleting download.\n";
+               print STDERR "MD5 sum of the downloaded file does not match (file: $sum, requested: $md5sum) - deleting download.\n";
                cleanup();
                return;
        }
This page took 0.021531 seconds and 4 git commands to generate.