mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-29 11:52:59 +08:00
silent err if dbus absent
This commit is contained in:
parent
4c085245c5
commit
ba08d5794c
1 changed files with 1 additions and 1 deletions
2
pm3
2
pm3
|
@ -67,7 +67,7 @@ function get_pm3_list_Linux {
|
|||
if $FINDBTDIRECT; then
|
||||
# check if the MAC of a Proxmark3 was registered in the known devices
|
||||
MACS=()
|
||||
for MAC in $(dbus-send --system --print-reply --type=method_call --dest='org.bluez' '/' org.freedesktop.DBus.ObjectManager.GetManagedObjects|\
|
||||
for MAC in $(dbus-send --system --print-reply --type=method_call --dest='org.bluez' '/' org.freedesktop.DBus.ObjectManager.GetManagedObjects 2>/dev/null|\
|
||||
awk '/"Address"/{getline;gsub(/"/,"",$3);a=$3}/Name/{getline;if (/PM3_RDV4/) print a}'); do
|
||||
PM3LIST+=("bt:$MAC")
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue