Files
2026-05-28 23:55:24 -03:00

20 lines
271 B
Bash

#!/usr/bin/bash
set -e
case "$1" in
pre)
;;
post)
if ! grep -q '^sndiod:' /etc/group; then
groupadd -r sndiod
fi
if ! grep -q '^sndiod:' /etc/passwd; then
useradd -r -g sndiod -d /var/empty -s /bin/false -c "sndio daemon" sndiod
fi
;;
esac
exit 0