From 7fcb1ac5ed2dc026b90698a2a20c0b91dfcc8b1b Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 27 Feb 2022 13:17:10 +0100 Subject: [PATCH] make accessrights: ignore if bluetooth stack not installed --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f1c06b392..fd02200af 100644 --- a/Makefile +++ b/Makefile @@ -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