From 2c1fe700e2b9f5ca12611516386c5fdd2fbe780a Mon Sep 17 00:00:00 2001 From: Edward Li Date: Fri, 9 Dec 2022 23:44:47 -0500 Subject: [PATCH] Fix `make accessrights` for Fedora --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 7439c0dcf..5452842cc 100644 --- a/Makefile +++ b/Makefile @@ -267,6 +267,10 @@ ifneq ($(wildcard /etc/arch-release),) #If user is running ArchLinux, use specific command and group $(Q)$(SUDO) $(USERMOD) uucp $(USER) $(Q)$(GETENT_BL) >/dev/null && $(SUDO) $(USERMOD) bluetooth $(USER) || true +else ifneq ($(wildcard /etc/fedora-release),) +# If the user is running Fedora, use `usermod` with the dialout group + $(Q)$(SUDO) $(USERMOD) dialout $(USER) + $(Q)$(GETENT_BL) >/dev/null && $(SUDO) $(USERMOD) bluetooth $(USER) || true else $(Q)$(SUDO) $(ADDUSER) $(USER) dialout $(Q)$(GETENT_BL) >/dev/null && $(SUDO) $(ADDUSER) $(USER) bluetooth || true