From: Michael Brown Date: Wed, 15 Aug 2012 12:20:02 +0000 (+0100) Subject: [util] Fix up checksum in UNDI ROM header, if present X-Git-Tag: v1.20.1~1674 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7eea31ed8d2c138ff4ebe6e7c9ced3ba7341ab6;p=thirdparty%2Fipxe.git [util] Fix up checksum in UNDI ROM header, if present The UNDI ROM header does contain a checksum byte. Apparently no-one cares about this, since iPXE has left it as zero for years without anyone noticing. Since Option::ROM now understands the UNDI ROM header, we may as well fix up the checksum byte for the sake of completeness. Signed-off-by: Michael Brown --- diff --git a/src/util/fixrom.pl b/src/util/fixrom.pl index 8987b5129..dcc38fe4b 100755 --- a/src/util/fixrom.pl +++ b/src/util/fixrom.pl @@ -32,6 +32,7 @@ foreach my $romfile ( @romfiles ) { my $image = $rom; while ( $image ) { $image->pnp_header->fix_checksum() if $image->pnp_header; + $image->undi_header->fix_checksum() if $image->undi_header; $image->ipxe_header->fix_checksum() if $image->ipxe_header; $image->fix_checksum(); $image = $image->next_image();