#!/bin/bash
blocknum=`printf %d "'\`dd if=pcrom.rom bs=1 skip=2 count=1 2>/dev/null\`"`
size=$(($blocknum * 512))
dd if=efi.efi of=pcrom.rom bs=$size seek=1 conv=notrunc
python fixrom.py pcrom.rom efirom6.rom