From 376c4fd174b93c6dc5547687925eddced146cb77 Mon Sep 17 00:00:00 2001 From: jkh Date: Sun, 13 Apr 1997 06:43:58 +0000 Subject: Add a -b option to make the resulting CDROM image bootable (requires new mkisofs 1.10 port). --- share/examples/worm/makecdfs.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'share/examples/worm') diff --git a/share/examples/worm/makecdfs.sh b/share/examples/worm/makecdfs.sh index 0071a60..b4e3d74 100755 --- a/share/examples/worm/makecdfs.sh +++ b/share/examples/worm/makecdfs.sh @@ -7,6 +7,13 @@ # makecdfs FreeBSD-2.1.5 /a/cdrom-dist /a/cdimage.cd0 "Walnut Creek CDROM \ # 1-510-674-0783 FAX 1-510-674-0821" +if [ "$1" = "-b" ]; then + bootable="-b floppies/boot.flp -c floppies/boot.catalog" + shift +else + bootable="" +fi + if [ $# -lt 4 ]; then echo "usage: $0 \"cd-title\" input-tree output-file \"copyright\"" elif [ ! -d $2 ]; then @@ -16,5 +23,6 @@ else tree=$1; shift outfile=$1; shift copyright="$*" - mkisofs -a -d -N -D -R -T -V "$title" -P "$copyright" -o $outfile $tree + mkisofs.new $bootable -a -d -N -D -R -T -V "$title" -P "$copyright" -o $outfile $tree +# mkisofs -a -d -N -D -R -T -V "$title" -P "$copyright" -o $outfile $tree fi -- cgit v1.1