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