aboutsummaryrefslogtreecommitdiff
path: root/audio/jack_umidi/files/jack_umidi.conf.in
blob: c004f3b0a9d897e553670fb3a2675244e4eab115 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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`";
};