summaryrefslogtreecommitdiffstats
path: root/share/examples/worm
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2000-09-22 15:05:04 +0000
committerasmodai <asmodai@FreeBSD.org>2000-09-22 15:05:04 +0000
commit5289eed39559ea0276e9aafbcce37d0a7b970221 (patch)
tree15ddda02eddc66c3676a3b21254bb884f620ac07 /share/examples/worm
parentbf5d99e0d9410f4f325c87984be29cae61527433 (diff)
downloadFreeBSD-src-5289eed39559ea0276e9aafbcce37d0a7b970221.zip
FreeBSD-src-5289eed39559ea0276e9aafbcce37d0a7b970221.tar.gz
This is a very obsolete example file for wormcontrol, which is no
longer present in the tree. PR: 21005 Submitted by: Michael Harnois <mdharnois@home.com>
Diffstat (limited to 'share/examples/worm')
-rwxr-xr-xshare/examples/worm/burncd.sh41
1 files changed, 0 insertions, 41 deletions
diff --git a/share/examples/worm/burncd.sh b/share/examples/worm/burncd.sh
deleted file mode 100755
index 5b1004c..0000000
--- a/share/examples/worm/burncd.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# usage: burncd input-file
-#
-# 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 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"
-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
- scsi -f /dev/worm0.ctl -c "0 0 0 0 0 0" >/dev/null 2>&1
- wormcontrol prepdisk double $*
- wormcontrol track data
- rtprio 5 team -v 1m 5 < $fname | rtprio 5 dd of=/dev/worm0 obs=20k
- wormcontrol fixate 1
-fi
OpenPOWER on IntegriCloud