#!/bin/bash
#
#et99 uninstall script
#
#Check whether the current user is root
if test $(id -ur) != 0; then
    echo
    echo "You should logon as root user!"
	echo
    exit 1
fi
rm -f /usr/local/lib/*libET299.so

echo
echo Uninstalling ET99 SDK...
echo
 
#Delete et99 libs
rm -rf /usr/local/include/et299api.h
rm -f /usr/local/lib/*libET299*

/sbin/ldconfig 2>/dev/null 

echo Uninstall finished!

