summaryrefslogtreecommitdiff
path: root/testing/jack
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-12-01 14:10:29 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-12-01 14:10:29 +0000
commitbc0657f7159d0b01373ecb59afc426b98a172b1e (patch)
tree7fba1eb77eb1a2965fe5f3ed72cc77aa63d14f40 /testing/jack
parentfd115d7057eb8243df6edfaf1ed440d6f3e70692 (diff)
Thu Dec 1 14:10:27 UTC 2011
Diffstat (limited to 'testing/jack')
-rw-r--r--testing/jack/99-realtime.conf2
-rw-r--r--testing/jack/jack.install57
2 files changed, 0 insertions, 59 deletions
diff --git a/testing/jack/99-realtime.conf b/testing/jack/99-realtime.conf
deleted file mode 100644
index 671a10851..000000000
--- a/testing/jack/99-realtime.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-@realtime - rtprio 99
-@realtime - memlock unlimited
diff --git a/testing/jack/jack.install b/testing/jack/jack.install
deleted file mode 100644
index 2d0db58e7..000000000
--- a/testing/jack/jack.install
+++ /dev/null
@@ -1,57 +0,0 @@
-_addgroup() {
- # _addgroup $GROUPNAME $GID
- [ ${#@} -ne 2 ] && return 1
-
- echo -n " > Checking if '$1' group exists..."
- if ! getent group $1 > /dev/null; then
- echo "no"
- echo " > Add '$1' group"
- echo -n " >> checking if GID is in use..."
- # no other package or user is supposed to use this gid
- # delete the group and re-add it at the end without static gid
- if getent group $2 > /dev/null; then
- echo "yes"
- firstgroup=$(getent group $2 | sed 's/:.*//')
- firstusers=$(getent group $2 | sed 's/.*://')
- echo " >> delete group '$firstgroup'"
- groupdel $firstgroup
- else
- echo "no"
- fi
-
- echo " >> add our group with proper GID"
- groupadd -g $2 $1
-
- if [ -n "$firstgroup" ]; then
- echo " >> restore group '$firstgroup' with dynamic GID"
- groupadd $firstgroup
- [ -n "$firstusers" ] && gpasswd -M $firstusers $firstgroup
- fi
- else
- echo "yes (all good)"
- fi
-}
-
-post_install() {
- _addgroup realtime 112
- echo
- echo " * You must be part of the 'realtime' group to use RT scheduling"
- echo " * You don't need an 'RT kernel' to use RT scheduling"
- echo " * If you don't need RT start jack with '--no-realtime'"
- echo " * If you don't record or sequence audio you don't need RT"
-}
-
-post_upgrade() {
- _addgroup realtime 112
- echo
- echo " * You must be part of the 'realtime' group to use RT scheduling"
- echo " * Configuring RT through limits.conf has been deprecated"
- echo " * See /etc/security/limits.d/99-realtime.conf instead"
-}
-
-post_remove() {
- [ "$(getent group realtime | cut -d ':' -f 3)" = '112' ] && \
- groupdel realtime || true
-}
-
-# vim:set ts=2 sw=2 et: