fix: Create input group another way for usermod command

This commit is contained in:
Kyle Gospodnetich 2023-09-28 14:51:12 -07:00
parent ba41a62a71
commit a0c10ff89b
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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