#!/bin/bash
#
#ET199 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/*ET199.so

#Check the Linux system for 32-bit or 64-bit
LINUXSYS=`file /bin/ls | cut -c14-15`



echo 
echo "Uninstalling ET199 SDK..."
echo

#Delete ET199 libs
rm -f /usr/local/include/et199_32.h
rm -f /usr/local/lib/*ET199*


/sbin/ldconfig

echo "Uninstall finished!"
