make accessrights: ignore if bluetooth stack not installed

This commit is contained in:
Philippe Teuwen 2022-02-27 13:17:10 +01:00
parent 4c8b4af337
commit 7fcb1ac5ed

View file

@ -265,10 +265,10 @@ udev:
accessrights:
ifneq ($(wildcard /etc/arch-release),) #If user is running ArchLinux
sudo usermod -aG uucp $(USER) #Use specific command and group
sudo usermod -aG bluetooth $(USER) #Use specific command and group
getent group bluetooth >/dev/null && sudo usermod -aG bluetooth $(USER) #Use specific command and group
else
sudo adduser $(USER) dialout
sudo adduser $(USER) bluetooth
getent group bluetooth >/dev/null && sudo adduser $(USER) bluetooth
endif
# easy printing of MAKE VARIABLES