mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
make accessrights: Silent error when no bluetooth group
This commit is contained in:
parent
ab5213126d
commit
bf522bf663
1 changed files with 6 additions and 5 deletions
11
Makefile
11
Makefile
|
@ -263,12 +263,13 @@ udev:
|
||||||
# you need to logout, relogin to get this access right correct.
|
# you need to logout, relogin to get this access right correct.
|
||||||
# Finally, you might need to run the proxmark3 client under SUDO on some systems
|
# Finally, you might need to run the proxmark3 client under SUDO on some systems
|
||||||
accessrights:
|
accessrights:
|
||||||
ifneq ($(wildcard /etc/arch-release),) #If user is running ArchLinux
|
ifneq ($(wildcard /etc/arch-release),)
|
||||||
sudo usermod -aG uucp $(USER) #Use specific command and group
|
#If user is running ArchLinux, use specific command and group
|
||||||
getent group bluetooth >/dev/null && sudo usermod -aG bluetooth $(USER) #Use specific command and group
|
$(Q)sudo usermod -aG uucp $(USER)
|
||||||
|
$(Q)getent group bluetooth >/dev/null && sudo usermod -aG bluetooth $(USER) || true
|
||||||
else
|
else
|
||||||
sudo adduser $(USER) dialout
|
$(Q)sudo adduser $(USER) dialout
|
||||||
getent group bluetooth >/dev/null && sudo adduser $(USER) bluetooth
|
$(Q)getent group bluetooth >/dev/null && sudo adduser $(USER) bluetooth || true
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# easy printing of MAKE VARIABLES
|
# easy printing of MAKE VARIABLES
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue