#!/bin/csh -f

source install.conf

top:

if($interactive == true) then
	clear
	echo "DE-INSTALL"
	echo ""
	echo "                         Kerberos"
	echo $bar
	echo ""
	echo ""
	echo "Removing"
	echo ""      
	echo "               /bin/athena/kinit,rkinit"
	echo "               /bin/athena/kdestroy,klist"
	echo "               /bin/athena/ksrvutil,ksrvtgt"
	echo "               /bin/athena/rsh,rcp"
	echo "               /bin/athena/rlogin"
	echo "               /etc/athena/login.krb"
	echo "               /etc/athena/klogind,kshd"
	echo "               /etc/athena/krb.realms,conf"
	echo "Modified files: "
	echo "               /etc/athena/rc.conf"
	echo "Disk freed:"
	echo "               /usr       390K"
	echo "               cache"
	echo ""
	df /usr
	echo ""
	get_response "continue? (yes/no) " "yes" "no"
	if($status == 2) exit 0
endif

log "**  running deinstall.krb:"

vecho ""
vecho "removing..."

#
# create directories
#

rm -f /bin/athena/klist
rm -f /bin/athena/rkinit
rm -f /bin/athena/kdestroy
rm -f /bin/athena/kinit
rm -f /bin/athena/rlogin
rm -f /bin/athena/rcp
rm -f /bin/athena/rsh
rm -f /bin/athena/ksrvutil
rm -f /bin/athena/ksrvtgt
rm -f /etc/athena/klogind
rm -f /etc/athena/kshd
rm -f /etc/athena/login.krb
rm -f /etc/athena/krb.conf
rm -f /etc/athena/krb.realms


version delete KerberosClient
log "**  done."
vecho "krb: done."

get_response "Press <return> to continue..." "<return>"

if($sing == true) then
	$sounds/kill_song
	$play $sounds/gomer.au
endif

exit 0
