iproute2: cake: support new operating modes
[openwrt/openwrt.git] / scripts / download.pl
index bf9fe8c76190a6088940523124313d4d91256e15..f5c3f71056d2f10b93b6c28960c199a7e10bff95 100755 (executable)
@@ -88,6 +88,7 @@ sub download_cmd($) {
 }
 
 my $hash_cmd = hash_cmd();
+$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
 {