#  iAPX286 @(#)bsetdate.sh	1.1
#  Check and set date

. /etc/TIMEZONE

	date `/etc/time` >/dev/null

while :
do
	echo "Is the date `date` correct? (y or n) \c"
	read reply
	if
		[ "$reply" = y ]
	then
		break
	else
		echo "Enter the correct date: (mmddhhmmyy) \c"
		read reply
		date "$reply" >/dev/null
		date +%m%d%H%M%y >/etc/odate
		date +%m%d%H%M%y >/dev/time
	fi
done

