#!/bin/csh
#
# This script will remove old hippi installations
# It will remove ess* files from /etc and then it will remove 
# /usr/local/Essential
# 
# Our new installation will create a /usr/Essential/hippi directory
# where all the Essential hippi executables and documentation will reside


# Remove old ess* file from /etc
foreach x ( blast dgram essarp essd essdb essdnld essgidle esshippi essstat \
	    esstb esstune sink stream tsock ttcp )
    if (-f /etc/$x) then
        /bin/rm -f /etc/$x
    endif
end

# change directory to /usr/local and remove /usr/local/Essential
cd /usr/local
rm -rf Essential

# Check for /dev/ess0 and delete it
if ( -f /dev/ess0 ) then
    /bin/rm -f /dev/ess0
endif

exit(0)
