Skip to content

Commit

Permalink
fix: Create input group another way for usermod command
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Sep 28, 2023
1 parent ba41a62 commit a0c10ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -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
Expand Up @@ -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

0 comments on commit a0c10ff

Please sign in to comment.