summaryrefslogtreecommitdiff
path: root/audio/lsmi/setcap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'audio/lsmi/setcap.sh')
-rw-r--r--audio/lsmi/setcap.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/lsmi/setcap.sh b/audio/lsmi/setcap.sh
new file mode 100644
index 0000000000..56bb60de0b
--- /dev/null
+++ b/audio/lsmi/setcap.sh
@@ -0,0 +1,5 @@
+if [ -x /sbin/setcap ]; then
+ for i in lsmi-joystick lsmi-keyhack lsmi-monterey lsmi-mouse; do
+ /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$i
+ done
+fi