mirror of
https://github.com/RfidResearchGroup/miLazyCracker.git
synced 2026-05-12 11:20:09 -07:00
more tests around Debian pkgs installation
This commit is contained in:
@@ -8,8 +8,17 @@ fi
|
||||
set -x
|
||||
|
||||
# run this from inside miLazyCracker git repo
|
||||
|
||||
sudo apt-get install git libnfc-bin autoconf libnfc-dev
|
||||
if [ -f "/etc/debian_version" ]; then
|
||||
pkgs=""
|
||||
for pkg in git libnfc-bin autoconf libnfc-dev; do
|
||||
if ! dpkg -l $pkg >/dev/null 2>&1; then
|
||||
pkgs="$pkgs $pkg"
|
||||
fi
|
||||
done
|
||||
if [ "$pkgs" != "" ]; then
|
||||
sudo apt-get install $pkgs
|
||||
fi
|
||||
fi
|
||||
|
||||
# install MFOC
|
||||
[ -d mfoc ] || git clone https://github.com/nfc-tools/mfoc.git
|
||||
|
||||
Reference in New Issue
Block a user