#!/bin/bash
#
#Rockey4ND uninstall script
#
shlib=libRockey4ND.so.0.1

echo
echo Uninstalling Rockey4ND SDK...
echo

#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

#Delete Rockey4ND libs
rm -rf /usr/local/include/rockey.h
rm -rf /usr/local/lib/*Rockey4ND*

/sbin/ldconfig

echo Uninstall finished!
