summaryrefslogtreecommitdiff
path: root/package/pulseaudio/files/pulseaudio.postinst
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2014-01-19 13:53:55 +0100
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2014-01-19 13:53:55 +0100
commit57dba6f603a4e9499ce508c91928232e3349fbc9 (patch)
tree553168926675992f102447ea8236411111b28024 /package/pulseaudio/files/pulseaudio.postinst
parent3d1414631ce749e55141ba9ddb17ae531a9d9aff (diff)
fix dependency problems, add startup script
Diffstat (limited to 'package/pulseaudio/files/pulseaudio.postinst')
-rw-r--r--package/pulseaudio/files/pulseaudio.postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/pulseaudio/files/pulseaudio.postinst b/package/pulseaudio/files/pulseaudio.postinst
new file mode 100644
index 000000000..3e5b348a9
--- /dev/null
+++ b/package/pulseaudio/files/pulseaudio.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf pulseaudio pulseaudio NO
+gid=$(get_next_gid)
+add_user pulse $(get_next_uid) $gid /var/run/pulse
+add_group pulse $gid
+add_rcconf pulseaudio_flags pulseaudio_flags "--system --disallow-exit --disallow-module-loading --disable-shm --exit-idle-time=-1 --realtime=false"