mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
20 lines
271 B
Bash
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
|