:
#	@(#) reserved.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.
#
#	/etc/rc.d/9/reserved - System reserved commands after normal boot
#
recover=/dev/recover
recsize=10k
mail=/usr/bin/mail

[ "$AUTOFLAG" = -a ] && {
	# save fsck output and zero entire recover device
	if [ -b "$recover" ]
	then
		dd if=$recover bs=$recsize count=1 2> /dev/null |tr >> $BOOTLOG
		echo "\000\c" |dd of=$recover bs=$recsize conv=sync 2> /dev/null
		[ -x $mail ] && {
			su root -c "$mail -s 'Auto Boot Log' root < $BOOTLOG"
			rm -f $BOOTLOG
		}
	fi
}
