Script de déploiement NFC

De HackBBS
Aller à la navigation Aller à la recherche
 #!/bin/bash
 mkdir nfc
 cd nfc
 wget http://www.scm-pc-card.de/file/driver/Readers_Writers/scl3711_-_linux_64-bit_driver.gz
 wget https://alioth.debian.org/frs/download.php/file/3862/pcsc-lite-1.8.8.tar.bz2
 wget http://libnfc.googlecode.com/files/libnfc-1.7.0-rc7.tar.gz
 tar -xvzf scl3711_-_linux_64-bit_driver.gz
 tar -xjvf pcsc-lite-1.8.8.tar.bz2
 tar -xvzf libnfc-1.7.0-rc7.tar.gz
 cd pcsc-lite-1.8.8; apt-get install libudev-dev; ./configure && make && make install; cd ..
 cd sclgeneric_2.09_linux_64bit/
 ./install.sh
 cd ../libnfc-1.7.0-rc7
 sed -i 's/if (uiBlock == 0 \&\&/\/\/if (uiBlock == 0 \&\&/' utils/nfc-mfclassic.c
 sed -i 's/continue/\/\/continue/g' utils/nfc-mfclassic.c
 ./configure && make && make install