This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Unload OSX / macOS smartcard driver | |
# Useful for libnfc | |
# | |
# Solves the error: | |
# ~ $ nfc-list | |
# nfc-list uses libnfc libnfc-1.7.1-66-g24979c6 | |
# error libnfc.driver.acr122_usb Unable to claim USB interface (Permission denied) | |
# nfc-list: ERROR: Unable to open NFC device: acr122_usb:020:002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prereq | |
brew tap jlhonora/lsusb | |
brew install autoconf doxygen automake libtool libusb libusb-compat --universal wget pkgconfig lsusb | |
# Libnfc | |
git clone git@github.com:nfc-tools/libnfc.git | |
cd libnfc | |
./make_release.sh | |
autoreconf -vis | |
./configure --enable-doc --with-drivers=all --sysconfdir=/etc --prefix=/usr |