:
#	@(#) filesave.sh 1.4 88/11/11 
#
#
#	      UNIX is a registered trademark of AT&T
#		Portions Copyright 1976-1989 AT&T
#	Portions Copyright 1980-1989 Microsoft Corporation
#    Portions Copyright 1983-1989 The Santa Cruz Operation, Inc
#		      All Rights Reserved

:
#	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
