#!/bin/csh -f
#
# Network Installation Kit
#
# config.update: prompt for and edit update behavior
#
# Tom Coppeto
# MIT Network Group
# 17 September 1994
#
# $Header: /afs/net.mit.edu/project/netconf/sun4/src/util/RCS/config.update,v 1.1 94/09/18 11:56:29 tom Exp $
#

source $util/aliases

if($preset_notify == "") then
	get_response "Do you want to be notified of new software updates? (y/n) " "y" "n"
	switch($status)
		case 1:
			config.rc NOTIFYUPDATE true
			breaksw
		case 2:
			config.rc NOTIFYUPDATE false
			breaksw
	endsw
else
	config.rc NOTIFYUPDATE $preset_notify
endif

if($preset_auto == "") then
	get_response "Do you wish take updates automatically? (y/n) " "y" "n"
	switch($status)
		case 1:
			config.rc AUTOUPDATE true
			breaksw
		case 2:
			config.rc AUTOUPDATE false
			breaksw
	endsw
else
	config.rc AUTOUPDATE $preset_auto
endif

if($preset_contact == "") then
	echo "Please enter an electronic mail address to use"
	echo -n "as a contact for this machine: "
	set contact = $<
	config.rc CONTACT $contact
else
	config.rc CONTACT $preset_auto
endif


