# Allow realtime priority and memory lock if [ -x /sbin/setcap ]; then # Give all binaries in the package realtime capabilities: JACKBINS=( $(cd $PKG/usr/bin ; find . -type f -printf '%P\n') ) for EXE in \${JACKBINS[@]}; do /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/\$EXE done fi # Write an entry into fstab for the RAM-based tmpfs that jack wants to # see mounted on /dev/shm (for the low-latency!!!). if [ -f etc/fstab ]; then if ! grep -q "/dev/shm" etc/fstab ; then echo "# Next line added for jack audio - it will not harm your system" >> etc/fstab echo "none /dev/shm tmpfs defaults 0 0" >> etc/fstab fi fi if ! mount | grep -q "/dev/shm" ; then mount /dev/shm 2>/dev/null fi