opt/pulseaudio/pre-install

12 lines
353 B
Plaintext
Raw Normal View History

2013-08-07 09:48:39 +02:00
#!/bin/sh
# 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 09:48:39 +02: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