diff options
author | kwm <kwm@FreeBSD.org> | 2014-12-16 19:32:46 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2014-12-16 19:32:46 +0800 |
commit | d1f4629f4aaf4ea0998584247787af887a0e1390 (patch) | |
tree | 607f1d02d4a58a2079bfd23cd7844d437d28213d /audio | |
parent | 5d0e5d864d9176bee7f930ad9ac27091d70bcf76 (diff) | |
download | freebsd-ports-gnome-d1f4629f4aaf4ea0998584247787af887a0e1390.tar.gz freebsd-ports-gnome-d1f4629f4aaf4ea0998584247787af887a0e1390.tar.zst freebsd-ports-gnome-d1f4629f4aaf4ea0998584247787af887a0e1390.zip |
Commit the actualy devd script part of r374797
Diffstat (limited to 'audio')
-rw-r--r-- | audio/jack_umidi/files/jack_umidi.conf.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/audio/jack_umidi/files/jack_umidi.conf.in b/audio/jack_umidi/files/jack_umidi.conf.in new file mode 100644 index 000000000000..c004f3b0a9d8 --- /dev/null +++ b/audio/jack_umidi/files/jack_umidi.conf.in @@ -0,0 +1,14 @@ +# +# $FreeBSD$ +# +# Script to automatically start jack_umidi when a device is plugged in. +# This will attempt to run jack_umidi as whatever user jackd is running as. +# + +notify 0 { + match "system" "DEVFS"; + match "subsystem" "CDEV"; + match "type" "CREATE"; + match "cdev" "umidi[0-9]*[.][0-9]*"; + action "/usr/bin/env PATH=%%PREFIX%%/bin:/usr/bin %%PREFIX%%/sbin/jack_umidi -kBd /dev/$cdev -U `pgrep -x jackd | xargs -n 1 ps -o user= -p | head -1`"; +}; |