#!/bin/sh
#
# varyon:       Dynamically attaches a SCSI device
#
# See how we were called.
case "$1" in
  tape)
	echo -n "Attaching SCSI tape id=4: "
	echo "scsi add-single-device 0 0 4 0" > /proc/scsi/scsi
	echo
	;;
  cdw)
	echo -n "Attaching SCSI CDROM Writer id=5: "
	echo "scsi add-single-device 0 0 5 0" > /proc/scsi/scsi
	echo
	;;
  *)
	echo "*** Usage: varyon {tape|cdw}"
	exit 1
esac

exit 0

