:
#	@(#) filesave.sh 23.1 91/08/29 
#
#	Copyright (C) 1988-1991 The Santa Cruz Operation, Inc.
#		All Rights Reserved.
#	The information in this file is provided for the exclusive use of
#	the licensees of The Santa Cruz Operation, Inc.  Such users have the
#	right to use, modify, and incorporate this code into other products
#	for purposes authorized by the license agreement provided they include
#	this notice and the associated copyright notice with any such product.
#	The information in this file is provided "AS IS" without warranty.
#
#	Copyright (c) 1984, 1986, 1987, 1988 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.


#	The following prototype is meant as a guide in setting
#	up local filesave procedures.  It copies the BOOT, ROOT
#	and USR file systems from drive 0 to drive 1.

if [ $# != 1 ]
then
	echo usage: filesave packname
	exit 2
fi
don mhd 1
date >> /etc/log/filesave.log
dd if=/dev/boot0 of=/dev/boot1 bs=152b count=4
volcopy root /dev/rdsk/0s0 S3B000 /dev/rdsk/1s0 $1
volcopy usr /dev/rdsk/0s1 S3B000 /dev/rdsk/1s1 $1
echo FILESAVE COMPLETED >> /etc/log/filesave.log
doff mhd 1
