#!/bin/sh
# $Id: backto,v 1.3 2004/10/13 21:42:49 hm129959 Exp $

#   SAM-QFS_notice_begin
#
#   Solaris 2.x Sun Storage & Archiving Management File System
#
#   Copyright (c) 2004 Sun Microsystems, Inc.
#   All Rights Reserved.
#
#   Government Rights Notice
#   Use, duplication, or disclosure by the U.S. Government is
#   subject to restrictions set forth in the Sun Microsystems,
#   Inc. license agreements and as provided in DFARS 227.7202-1(a)
#   and 227.7202-3(a) (1995), DRAS 252.227-7013(c)(ii) (OCT 1988),
#   FAR 12.212(a)(1995), FAR 52.227-19, or FAR 52.227-14 (ALT III),
#   as applicable.  Sun Microsystems, Inc.
#
#   SAM-QFS_notice_end

ETCDIR=/etc/opt/SUNWsamfs
SBINDIR=/opt/SUNWsamfs/sbin

usage() {

	echo "Usage: backto { 4.1 | 4.2 }"
	exit 1
}
	
echo " "

if [ "$1" = "4.2" ]; then

	echo "Renaming files to the 4.2 names."

	if [ ! -f ${ETCDIR}/LICENSE.4.2 ]; then
		echo " "
		echo "No LICENSE.4.2 file exists. You must get a license for 4.2."
		echo " "
	fi

	echo "Conversion to 4.2 complete."

elif [ "$1" = "4.1" ]; then

	echo "Renaming files to the 4.1 names."

	if [ ! -f ${ETCDIR}/LICENSE.4.1 ]; then
		echo " "
		echo "No LICENSE.4.1 file exists. You must get a license for 4.1."
		echo " "
	fi

	echo "Conversion to 4.1 complete."

else
	usage
fi
