#!/bin/sh
ISO=georgslinux.iso
ISOPATH=georgslinux/

cp xell-fb/xell.cfg $ISOPATH/

# create XELL dummy
perl -e 'print "XELL"x262144' > $ISOPATH/axel
genisoimage -o $ISO -R -J $ISOPATH

# put XELL at LBA 0x20
dd if=xell-fb/xell-readcd.bin of=$ISO bs=2048 seek=32 conv=notrunc


#dd if=enable-0800-sec129823.bin bs=2048 seek=129823 conv=notrunc of=/var/tmp/$ISO
#dd if=$ISO of=/var/tmp/$ISO conv=notrunc

echo cdrecord.prodvd -tao -blank=minimal --eject dev=/dev/sg1 georgslinux.iso
