2013-08-07 16:48:39 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-01-28 23:46:59 +00:00
|
|
|
# check for pulseaudio group or add one
|
|
|
|
getent group pulse || /usr/sbin/groupadd pulse
|
|
|
|
getent group pulse-access || /usr/sbin/groupadd pulse-access
|
2013-08-07 16:48:39 +09:00
|
|
|
|
2021-01-28 23:46:59 +00:00
|
|
|
# check for pulseaudio user or add one
|
|
|
|
getent passwd pulse || /usr/sbin/useradd -g pulse -d /var/run/pulse -s /bin/false -c "Pulseaudio User" pulse
|
|
|
|
|
|
|
|
# lock the account
|
|
|
|
/usr/bin/passwd -l pulse
|