#!/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/sgi_52/7.7tom/src/util/RCS/config.update,v 1.2 94/10/06 10:00:17 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 notify on
                        breaksw
                case 2:
                        config.rc notify off
                        breaksw
        endsw
else
	config.rc notify $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 update  on
                        breaksw
                case 2:
                        config.rc update false
                        breaksw
        endsw
else
        config.rc update $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 = $<
else
        set contact = $preset_auto
endif

echo $contact > /etc/config/contact

