From a0c10ff89b38b4e7ac87e8c3ae0a64d9694452be Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Thu, 28 Sep 2023 14:51:12 -0700 Subject: [PATCH] fix: Create input group another way for usermod command --- .../deck/shared/usr/share/ublue-os/just/60-custom.just | 4 +++- .../desktop/shared/usr/share/ublue-os/just/60-custom.just | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just b/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just index 639b046d67..fc57aebf0e 100644 --- a/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just +++ b/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just @@ -417,5 +417,7 @@ fix-screenshare: # Add user to "input" group required by certain controller drivers add-user-to-input-group: #!/usr/bin/env bash - getent group input || sudo groupadd input + if ! grep -q "input" /etc/group; then + sudo bash -c 'grep "input" /lib/group >> /etc/group' + fi sudo usermod -a -G input $USER diff --git a/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just b/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just index 2c22f22371..19110d355b 100644 --- a/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just +++ b/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just @@ -235,5 +235,7 @@ fix-screenshare: # Add user to "input" group required by certain controller drivers add-user-to-input-group: #!/usr/bin/env bash - getent group input || sudo groupadd input + if ! grep -q "input" /etc/group; then + sudo bash -c 'grep "input" /lib/group >> /etc/group' + fi sudo usermod -a -G input $USER