#!/bin/sh

PID=$$
TMP_FILE=/tmp/ntap_san_inst_$PID
HBA_LIB=/usr/lib/libqlsdm.so
INS_DIR=/opt/sanlun
INS_BIN_DIR=/opt/sanlun/bin

# 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/sanlun dir present remove it
	/bin/rm -rf $INS_DIR 
else
	echo "sanlun not installed.  $INS_DIR does not exist"	
fi;

exit 0;
