:
#	%Z% %M% %I% %E% %Q%
#
#	Copyright (C) The Santa Cruz Operation, 1988, 1989, 1990.
#	This Module contains Proprietary Information of
#	The Santa Cruz Operation, and should be treated as Confidential.
#

# set the standard exit values
: ${OK=0} ${FAIL=1} ${STOP=10}

getyn() {
	while	echo "\n$* (y/n) \c">&2
	do	read yn rest
		case $yn in
		[yY])	return $OK 			;;
		[nN])	return $FAIL			;;
		*)	echo "Please answer y or n" >&2	;;
		esac
	done
}

#main
getyn "Do you wish to set the system time ? " || exit $STOP
tz
. /etc/TIMEZONE		# why doesn't /etc/tz do this?
asktimerc
exit 0
