mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
proxmark3.sh for WSL: handle case when chmod is needed
This commit is contained in:
parent
55602bf833
commit
d746847d13
2 changed files with 5 additions and 0 deletions
|
@ -166,3 +166,4 @@ Or, by specifying the COM port manually:
|
||||||
client/proxmark3 /dev/ttySX
|
client/proxmark3 /dev/ttySX
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note that it may take a quite long time for a freshly plugged Proxmark3 to be visible on a WSL /dev/ttySX port.
|
||||||
|
|
|
@ -51,6 +51,10 @@ function wait4proxmark_WSL {
|
||||||
fi
|
fi
|
||||||
sleep .1
|
sleep .1
|
||||||
done
|
done
|
||||||
|
if [ -e "$PM3" ] && ! [ -w "$PM3" ]; then
|
||||||
|
echo "We need to give current user read/write access to $PM3"
|
||||||
|
sudo chmod 666 "$PM3"
|
||||||
|
fi
|
||||||
echo $PM3
|
echo $PM3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue