#!/bin/bash
#
#Rockey2 uninstall script
#

echo
echo Uninstalling Rockey2 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 Rockey2 libs
rm -rf /usr/local/include/rockey2.h
rm -f /usr/local/lib/*Rockey2*

/sbin/ldconfig

echo Uninstall finished!
