From owner-freebsd-questions Thu Aug 14 00:54:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA03473 for questions-outgoing; Thu, 14 Aug 1997 00:54:25 -0700 (PDT) Received: from oskar.nanoteq.co.za (oskar.nanoteq.co.za [163.195.220.170]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA03464 for ; Thu, 14 Aug 1997 00:54:16 -0700 (PDT) Received: (from rbezuide@localhost) by oskar.nanoteq.co.za (8.8.5/8.8.5) id JAA21117; Thu, 14 Aug 1997 09:53:59 +0200 (SAT) From: Reinier Bezuidenhout Message-Id: <199708140753.JAA21117@oskar.nanoteq.co.za> Subject: Re: Burning CDs In-Reply-To: <9708140659.AA16279@merlin.ukrv.de> from Udo Wolter at "Aug 14, 97 08:59:34 am" To: uwp@ukrv.de (Udo Wolter) Date: Thu, 14 Aug 1997 09:53:59 +0200 (SAT) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi .. Ooops .. ok so I forgot to include the scripts :) here they are :) multicdfs.sh --------------------------------------------------------- #!/bin/sh # # usage: makecdfs "cd title" input-tree output-file "copyright string" # # For example: # # 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 input-tree output-file xx yy " elif [ ! -d $1 ]; then echo "$0: $1 is not a directory tree." else tree=$1; shift outfile=$1; shift first=$1; shift second=$1; shift /usr/local/bin/mkisofs $bootable -a -d -N -D -R -C $first,$second -M /dev/worm0 -o $outfile $tree fi ------------------------------------------------------------ burncd.sh ------------------------------------------------------------- #!/bin/sh # # usage: burncd input-file dummy onp # # Note: This is set up to work ONLY on the HP 4020i CDR drive! # See the man page for wormcontrol(1) and change the wormcontrol commands # to match your drive, if the man page lists it as supported. # # This script also requires the usage of team(1), an optional component from # the FreeBSD ports collection. if ! pkg_info -e team-3.1; then echo "$0: You do not appear to have the team package installed." echo echo "Please see /usr/ports/misc/team-3.1 if you have the ports" echo "collection on your machine, or install the team package from" echo "your CD or the net. To install team from the net right now," echo "simply type:" echo echo "pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/packages/All/team-3.1.tgz" echo echo "when logged in (or su'd to) root." exit 1 fi if [ $# -lt 1 ]; then echo "usage: $0 input-file [dummy] [onp]" elif [ "`id -u`" != "0" ]; then echo "Sorry, this must be done as root." else echo -n "Place CD in the worm drive now and press return: " read junk fname=$1; shift choice=$1; shift if [ "X${choice}" = X"onp" ]; then dummy="" ntracks=$choice else dummy=$choice ntracks=$* fi echo $dummy echo $ntracks scsi -f /dev/rworm0.ctl -c "0 0 0 0 0 0" >/dev/null 2>&1 wormcontrol prepdisk double $dummy wormcontrol track data rtprio 5 team -v 1m 5 < $fname | rtprio 5 dd of=/dev/rworm0 obs=20k wormcontrol fixate 1 $ntracks fi ------------------------------------------------------------------------- byebye Reinier