mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
add workaround for freebsd
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5017 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -43,9 +43,10 @@ sub download
|
|||||||
cleanup();
|
cleanup();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$? = 0;
|
||||||
|
|
||||||
my $sum = `cat "$target/$filename.md5sum"`;
|
my $sum = `cat "$target/$filename.md5sum"`;
|
||||||
$sum =~ /^(\w+)\s+/ or die "Could not generate md5sum\n";
|
$sum =~ /^(\w+)\s*/ or die "Could not generate md5sum\n";
|
||||||
$sum = $1;
|
$sum = $1;
|
||||||
|
|
||||||
if (($md5sum =~ /\w{32}/) and ($sum ne $md5sum)) {
|
if (($md5sum =~ /\w{32}/) and ($sum ne $md5sum)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user