mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-17 18:50:32 +08:00
Improved install.sh to work in Ubuntu 18.04 and using max processors availables for compiling with make
This commit is contained in:
parent
f28bd282bb
commit
f226581654
1 changed files with 8 additions and 2 deletions
10
install.sh
10
install.sh
|
@ -11,6 +11,12 @@ function installProxmark_Linux {
|
|||
sudo apt-get autoclean -y
|
||||
sudo apt-get clean -y
|
||||
sudo apt-get update
|
||||
|
||||
# Install libcanberragtk in Ubuntu 18.04
|
||||
if [[ $(cat /etc/issue | awk '{print $2}') = *"18.04"* ]]; then
|
||||
apt-get install libcanberra-gtk-module
|
||||
fi
|
||||
|
||||
# install RDV40 - proxmark3
|
||||
git clone https://github.com/RfidResearchGroup/proxmark3.git
|
||||
(
|
||||
|
@ -18,7 +24,7 @@ function installProxmark_Linux {
|
|||
git reset --hard
|
||||
git clean -dfx
|
||||
make clean
|
||||
make all
|
||||
make -j$(nproc) all
|
||||
# Copy blacklist rules into /etc/udev/rules.d
|
||||
# check the Makefile for details
|
||||
sudo make udev
|
||||
|
@ -46,7 +52,7 @@ local qt5Core=$(find /usr -name Qt5Core.pc 2>/dev/null)
|
|||
git reset --hard
|
||||
git clean -dfx
|
||||
make clean
|
||||
make
|
||||
make -j$(sysctl -n hw.physicalcpu)
|
||||
)
|
||||
}
|
||||
# Where is my device?
|
||||
|
|
Loading…
Reference in a new issue