#!/bin/sh
##############################################################################
# $Id: create_version_file,v 1.1 2002/03/21 19:03:33 root Exp $
##############################################################################
# Create a version file on the system for future reference to what image
# the system was JumpStarted with.
##############################################################################
# $Log: create_version_file,v $
# Revision 1.1  2002/03/21 19:03:33  root
# Initial revision
#
##############################################################################

echo
echo "Start of $0"
echo '  $Id: create_version_file,v 1.1 2002/03/21 19:03:33 root Exp $'

BASE=/a

if [ -z "$1" ]
then
	echo "  No image name supplied" >&2
	exit
fi
if [ -z "$2" ]
then
	echo "  No image version supplied" >&2
	exit
fi

echo "  Creating JumpStart version file /etc/jumpstart-image-release"

echo "$1 $2" > $BASE/etc/jumpstart-image-release

chmod 644 $BASE/etc/jumpstart-image-release

echo "End of $0"

