summaryrefslogtreecommitdiffstats
path: root/share/examples/worm
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-04-13 06:43:58 +0000
committerjkh <jkh@FreeBSD.org>1997-04-13 06:43:58 +0000
commit376c4fd174b93c6dc5547687925eddced146cb77 (patch)
treea0078da475953b88b67e1f38303fbc93683b01a6 /share/examples/worm
parent623fd91a30a0c1cfa643b3ef52ef90cf8bb96baa (diff)
downloadFreeBSD-src-376c4fd174b93c6dc5547687925eddced146cb77.zip
FreeBSD-src-376c4fd174b93c6dc5547687925eddced146cb77.tar.gz
Add a -b option to make the resulting CDROM image bootable
(requires new mkisofs 1.10 port).
Diffstat (limited to 'share/examples/worm')
-rwxr-xr-xshare/examples/worm/makecdfs.sh10
1 files changed, 9 insertions, 1 deletions
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
OpenPOWER on IntegriCloud