mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 14:38:21 +00:00
ports: sndio
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user