#!/bin/bash
#
#Rockey200 uninstall script
#

echo
echo Uninstalling Rockey200 Driver...
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

PREFIX1=/usr/lib/pcsc/drivers
PREFIX2=/usr/local/pcsc/drivers
PREFIX3=/usr/lib/readers

rm -rf $PREFIX1/Rockey200.bundle
rm -rf $PREFIX2/Rockey200.bundle
rm -rf $PREFIX3/Rockey200.bundle

echo Uninstall finished!
echo
