diff options
author | Koop Mast <kwm@FreeBSD.org> | 2014-12-16 19:32:46 +0800 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2014-12-16 19:32:46 +0800 |
commit | c96aa42d145e732a7bd6aaf263c64923d213c5c6 (patch) | |
tree | 607f1d02d4a58a2079bfd23cd7844d437d28213d /audio | |
parent | 550a81e4c71f39dc5b6cdaf52609b2eca1c19750 (diff) | |
download | freebsd-ports-gnome-c96aa42d145e732a7bd6aaf263c64923d213c5c6.tar.gz freebsd-ports-gnome-c96aa42d145e732a7bd6aaf263c64923d213c5c6.tar.zst freebsd-ports-gnome-c96aa42d145e732a7bd6aaf263c64923d213c5c6.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`"; +}; |