summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMichael Brown2012-08-15 14:20:02 +0200
committerMichael Brown2012-08-15 14:22:12 +0200
commitc7eea31ed8d2c138ff4ebe6e7c9ced3ba7341ab6 (patch)
tree2096cd29769cdfb84c3072e71d1be13e28ab57ad /src/util
parent[util] Display UNDI ROM header in disrom.pl (diff)
downloadipxe-c7eea31ed8d2c138ff4ebe6e7c9ced3ba7341ab6.tar.gz
ipxe-c7eea31ed8d2c138ff4ebe6e7c9ced3ba7341ab6.tar.xz
ipxe-c7eea31ed8d2c138ff4ebe6e7c9ced3ba7341ab6.zip
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/fixrom.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/fixrom.pl b/src/util/fixrom.pl
index 8987b512..dcc38fe4 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();