base-files: allow skipping of hash verification
[openwrt/openwrt.git] / scripts / download.pl
index 775408934ab25c92b1c988c325c0effd8ff45e50..f5c3f71056d2f10b93b6c28960c199a7e10bff95 100755 (executable)
@@ -88,7 +88,7 @@ sub download_cmd($) {
 }
 
 my $hash_cmd = hash_cmd();
-$hash_cmd or die "Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.\n";
+$hash_cmd or ($file_hash eq "skip") or die "Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.\n";
 
 sub download
 {