#!/bin/sh
# create a bootable cd

BUILD_DIR=createcd

if [ -e $BUILD_DIR ]
then
echo "removing $BUILD_DIR dir and it's contents"
rm -rf $BUILD_DIR
fi

mkdir -p $BUILD_DIR/boot
cd $BUILD_DIR

# copy the floppy image you want to boot from to the hdd
dd if=/dev/fd0 of=boot/boot.img bs=1k count=1440

# make sure you add files i.e
# create dir structure
# boot/
# myfiles/
# morefiles/
# this command is run from the $BUILD_DIR
# mkisofs -r -b boot/boot.img -c boot/boot.catalog -o bootcd.iso .
