esac
BOOT="-boot menu=on,splash=boot.jpg,splash-time=60000"
-[ $(( $REPLY % 2 )) -eq 0 ] && BOOT="-bios /usr/share/OVMF/OVMF_CODE.fd"
+if [ $(( $REPLY % 2 )) -eq 0 ] ; then
+ {
+ dd if=/usr/share/OVMF/OVMF_CODE_4M.fd of=pcode.bin
+ dd if=/usr/share/OVMF/OVMF_VARS_4M.fd of=pvars.bin
+ } 2>/dev/null
+ BOOT="
+ -drive if=pflash,readonly=on,format=raw,file=pcode.bin
+ -drive if=pflash,readonly=off,format=raw,file=pvars.bin
+ "
+fi
case "$NET" in
vde)