#!/bin/sh
if [ $# -lt 1 ]; then echo Error: Argument missing; exit 1; fi

dd if=/dev/zero of=empty bs=10k count=144

cat $1 empty > temp

if [ ! -d boot ]; then mkdir boot; fi

dd if=temp of=boot/boot.img bs=10k count=144

if [ -f boot.iso ]; then rm boot.iso; fi

mkisofs -r -b boot/boot.img -c boot/boot.catalog -o boot.iso .

rm empty temp

#sudo wodim speed=4 blank=fast boot.iso
