Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 26 lines (20 sloc) 1.04 KB
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root:" 1>&2
echo "" 1>&2
echo "sudo /usr/local/bin/opensc-uninstall" 1>&2
exit 1
rm -rf /Library/OpenSC
rm -rf /System/Library/Security/tokend/OpenSC.tokend
for file in /usr/lib/ /usr/local/bin/cardos-tool /usr/local/bin/cryptoflex-tool /usr/local/bin/eidenv /usr/local/bin/netkey-tool /usr/local/bin/opensc-explorer /usr/local/bin/opensc-tool /usr/local/bin/piv-tool /usr/local/bin/pkcs11-tool /usr/local/bin/pkcs15-crypt /usr/local/bin/pkcs15-init /usr/local/bin/pkcs15-tool /usr/local/bin/rutoken-tool /usr/local/bin/westcos-tool; do
test -L $file && rm -f $file
rm -f /usr/local/bin/opensc-uninstall
# delete receipts on 10.6
for file in /var/db/receipts/ /var/db/receipts/org.opensc-project.mac.plist; do
test -f $file && rm -f $file
# delete receipts on 10.5
test -d /Library/Receipts/OpenSC-10.5.pkg && rm -rf /Library/Receipts/OpenSC-10.5.pkg
echo "OpenSC has been removed from your system. See you again!"
Something went wrong with that request. Please try again.