mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-26 09:35:24 +00:00
fix: Create input group another way for usermod command
This commit is contained in:
parent
ba41a62a71
commit
a0c10ff89b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user