aboutsummaryrefslogtreecommitdiff
path: root/share/examples
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1997-04-13 06:43:58 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1997-04-13 06:43:58 +0000
commit1c662397c4d900a5a2946f3720ec0d870ee623f9 (patch)
tree7eb5652ef4b55f9d2370b7fe8bfe924e722a3c2c /share/examples
parent5801796846945875cb06f62d75349077263b2b3e (diff)
downloadsrc-1c662397c4d900a5a2946f3720ec0d870ee623f9.tar.gz
src-1c662397c4d900a5a2946f3720ec0d870ee623f9.zip
Add a -b option to make the resulting CDROM image bootable
(requires new mkisofs 1.10 port).
Notes
Notes: svn path=/head/; revision=24860
Diffstat (limited to 'share/examples')
-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 0071a60b5332..b4e3d744f925 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