#!/bin/sh

PID=$$
TMP_FILE=/tmp/ntap_san_inst_$PID
INS_DIR=/opt/netapp
INS_BIN_DIR=/opt/netapp/santools

# Ensure the user is running as root
USER=`/usr/bin/whoami`

if [ "$USER" != "root" ]
then
        echo
        echo This uninstall program must be run as root.
        echo
        exit 1
fi

rm -f /usr/sbin/sanlun

# See if there is a sanlun installed 
if [ -d $INS_DIR ] ; then
	# There is an /opt/netapp dir present remove it
	/bin/rm -rf $INS_DIR 
else
	echo "sanlun not installed.  $INS_DIR does not exist"	
fi;

exit 0;
